aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2010-11-25 21:46:47 +0000
committeraclement <aclement>2010-11-25 21:46:47 +0000
commit94256803f37d6e60c036582144b1bd33c4524973 (patch)
tree6a4ba6d31cd0738ff7e48baf5285588580477fc9 /org.aspectj.ajdt.core
parentea9cfb2f1619e40f708cbd596495e68c1d0b8d8f (diff)
downloadaspectj-94256803f37d6e60c036582144b1bd33c4524973.tar.gz
aspectj-94256803f37d6e60c036582144b1bd33c4524973.zip
annotation removal program element support
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java
index 6a5884dbc..cc1c3e3e2 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java
@@ -547,7 +547,8 @@ public class AsmHierarchyBuilder extends ASTVisitor {
peNode.setParentTypes(parents);
}
if (decl instanceof DeclareAnnotation) {
- ResolvedType annotationType = ((DeclareAnnotation) decl).getAnnotationType();
+ DeclareAnnotation da = (DeclareAnnotation) decl;
+ ResolvedType annotationType = da.getAnnotationType();
if (annotationType == null) {
String s = ((DeclareAnnotation) decl).getAnnotationString();
if (s != null && s.length() > 0) {
@@ -557,6 +558,9 @@ public class AsmHierarchyBuilder extends ASTVisitor {
} else {
peNode.setAnnotationType(annotationType.getName());
}
+ if (da.isRemover()) {
+ peNode.setAnnotationRemover(true);
+ }
}
}
if (methodDeclaration.returnType != null) {