Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-05-13 17:38:01 -0400
committerTom Schindl2014-05-13 17:38:01 -0400
commit41e50b57cab85e460cac31725c30b92ab9ab3776 (patch)
tree67c296ad29310362ad790906644e2a5bcd6b3a03
parent25dad7565cf24cf4cd936683b910e74d206bb5fb (diff)
downloadorg.eclipse.efxclipse-41e50b57cab85e460cac31725c30b92ab9ab3776.tar.gz
org.eclipse.efxclipse-41e50b57cab85e460cac31725c30b92ab9ab3776.tar.xz
org.eclipse.efxclipse-41e50b57cab85e460cac31725c30b92ab9ab3776.zip
Bug 434803 - Upgrade to jdt.annotation 2.0
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.model/src/org/eclipse/fx/ide/model/internal/utils/Util.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/tooling/org.eclipse.fx.ide.model/src/org/eclipse/fx/ide/model/internal/utils/Util.java b/bundles/tooling/org.eclipse.fx.ide.model/src/org/eclipse/fx/ide/model/internal/utils/Util.java
index 2d2c9359d..538460089 100755
--- a/bundles/tooling/org.eclipse.fx.ide.model/src/org/eclipse/fx/ide/model/internal/utils/Util.java
+++ b/bundles/tooling/org.eclipse.fx.ide.model/src/org/eclipse/fx/ide/model/internal/utils/Util.java
@@ -12,6 +12,7 @@ package org.eclipse.fx.ide.model.internal.utils;
import org.eclipse.fx.ide.model.IFXPrimitiveProperty;
import org.eclipse.fx.ide.model.IFXPrimitiveProperty.Type;
+import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jdt.core.IAnnotation;
import org.eclipse.jdt.core.IMemberValuePair;
import org.eclipse.jdt.core.IType;
@@ -21,7 +22,7 @@ import org.eclipse.jdt.core.Signature;
public class Util {
@SuppressWarnings("unchecked")
- public static <R> R getAnnotationMemberValue(IAnnotation annotation, String name) throws JavaModelException {
+ public static <@Nullable R> R getAnnotationMemberValue(IAnnotation annotation, String name) throws JavaModelException {
for (IMemberValuePair pair : annotation.getMemberValuePairs()) {
if( name.equals(pair.getMemberName()) ) {
return (R) pair.getValue();

Back to the top