From 94256803f37d6e60c036582144b1bd33c4524973 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 25 Nov 2010 21:46:47 +0000 Subject: [PATCH] annotation removal program element support --- .../ajdt/internal/core/builder/AsmHierarchyBuilder.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.39.5