]> source.dussan.org Git - aspectj.git/commitdiff
make deca labels 'declare @xxx' rather than 'declare at_xxx'
authoraclement <aclement>
Thu, 24 Mar 2005 13:10:02 +0000 (13:10 +0000)
committeraclement <aclement>
Thu, 24 Mar 2005 13:10:02 +0000 (13:10 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java

index 33716d45a62e77d27105428bea615c70a47d7b81..50a2a11c5ed001afff3c447515f22c5d3a3cdc7b 100644 (file)
@@ -162,7 +162,9 @@ public class AsmElementFormatter {
                                
                        } else if (declare.declareDecl instanceof DeclareAnnotation) {
                            DeclareAnnotation deca = (DeclareAnnotation)declare.declareDecl;
-                           node.setName(name + deca.getKind());
+                               String thekind = deca.getKind().toString();
+                               node.setName(name+"@"+thekind.substring(3));
+
                            if (deca.getKind()==DeclareAnnotation.AT_CONSTRUCTOR) {
                              node.setKind(IProgramElement.Kind.DECLARE_ANNOTATION_AT_CONSTRUCTOR);
                            } else  if (deca.getKind()==DeclareAnnotation.AT_FIELD) {