Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2007-05-18 18:54:18 -0400
committeratikhomirov2007-05-18 18:54:18 -0400
commite4b9a5cb454f225401b048af3dfe9196269bfa96 (patch)
treed1bf82eced8ff9117c5a97586818caa051762bfe
parente32b46cb435f634a5d3225d4b2c90497c5c7aa95 (diff)
downloadorg.eclipse.gmf-tooling-e4b9a5cb454f225401b048af3dfe9196269bfa96.tar.gz
org.eclipse.gmf-tooling-e4b9a5cb454f225401b048af3dfe9196269bfa96.tar.xz
org.eclipse.gmf-tooling-e4b9a5cb454f225401b048af3dfe9196269bfa96.zip
minor beautify
-rw-r--r--plugins/org.eclipse.gmf.validate/src/org/eclipse/gmf/internal/validate/DefUtils.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/org.eclipse.gmf.validate/src/org/eclipse/gmf/internal/validate/DefUtils.java b/plugins/org.eclipse.gmf.validate/src/org/eclipse/gmf/internal/validate/DefUtils.java
index 3ac874341..55d9c0e3c 100644
--- a/plugins/org.eclipse.gmf.validate/src/org/eclipse/gmf/internal/validate/DefUtils.java
+++ b/plugins/org.eclipse.gmf.validate/src/org/eclipse/gmf/internal/validate/DefUtils.java
@@ -271,7 +271,7 @@ public class DefUtils {
}
}
// perform coverage check
- List<IStatus> statuses = Collections.emptyList();
+ List<IStatus> statuses = new ArrayList<IStatus>();
for (Iterator<EClass> it = subTypes.iterator(); it.hasNext();) {
EClass nextClass = it.next();
@@ -279,9 +279,6 @@ public class DefUtils {
String message = NLS.bind(Messages.def_NoCtxInProviderForCtxBinding,
LabelProvider.INSTANCE.getObjectLabel(nextClass),
LabelProvider.INSTANCE.getFeatureLabel(contextRef));
- if(statuses.isEmpty()) {
- statuses = new ArrayList<IStatus>();
- }
statuses.add(GMFValidationPlugin.createStatus(IStatus.ERROR, -1, message, null));
}
}

Back to the top