commit | 7c4f68a2f2cf22093fc68a7c6672fb650d2040dd | [log] [tgz] |
---|---|---|
author | Henrik Rentz-Reichert <hrr@protos.de> | Mon Jul 25 13:06:30 2016 +0200 |
committer | Henrik Rentz-Reichert <hrr@protos.de> | Mon Jul 25 13:07:00 2016 +0200 |
tree | ff6bb22606e47aaf677e264eae89b9efe2a716d3 | |
parent | e61795c40c6eccb55c4abea5875f9c4356834e02 [diff] |
Bug 498425 - Annotation parameter types aren't checked. https://bugs.eclipse.org/bugs/show_bug.cgi?id=498425 Change-Id: I3758df168a2cacc13160f6d028e1668222c94265
diff --git a/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/validation/BaseJavaValidator.java b/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/validation/BaseJavaValidator.java index 8396b40..791cf77 100644 --- a/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/validation/BaseJavaValidator.java +++ b/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/validation/BaseJavaValidator.java
@@ -133,9 +133,8 @@ values.toArray(new String[values.size()])); } } - } - else if (att instanceof SimpleAnnotationAttribute) { - switch (((SimpleAnnotationAttribute) att).getType()) { + else if (att instanceof SimpleAnnotationAttribute) { + switch (((SimpleAnnotationAttribute) att).getType()) { case BOOL : if (!(kv.getValue() instanceof BooleanLiteral)) error("boolean literal expected", kv, BasePackage.Literals.KEY_VALUE__VALUE); @@ -154,6 +153,7 @@ break; default : break; + } } } break;