Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/BinaryType.java')
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/BinaryType.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/BinaryType.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/BinaryType.java
index 66d0ad3305..a2dbaca219 100644
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/BinaryType.java
+++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/resource/java/binary/BinaryType.java
@@ -87,8 +87,8 @@ final class BinaryType
}
- public Kind getKind() {
- return JavaResourceAnnotatedElement.Kind.TYPE;
+ public AstNodeType getAstNodeType() {
+ return AstNodeType.TYPE;
}
@@ -405,12 +405,11 @@ final class BinaryType
return attribute.getTypeBinding();
}
InheritedAttributeKey key = new InheritedAttributeKey(attribute.getParent().getTypeBinding().getQualifiedName(), attribute.getName());
- if (attribute.getKind() == JavaResourceAnnotatedElement.Kind.FIELD) {
+ if (attribute.getAstNodeType() == JavaResourceAnnotatedElement.AstNodeType.FIELD) {
return this.inheritedFieldTypes.get(key);
}
- else /* attribute.getKind() == JavaResourceAnnotatedElement.Kind.METHOD */ {
- return this.inheritedMethodTypes.get(key);
- }
+ /* else attribute.getAstNodeType() == JavaResourceAnnotatedElement.AstNodeType.METHOD */
+ return this.inheritedMethodTypes.get(key);
}

Back to the top