]> source.dussan.org Git - aspectj.git/commitdiff
dont call string ctor with a string
authoraclement <aclement>
Sun, 31 Aug 2008 20:25:41 +0000 (20:25 +0000)
committeraclement <aclement>
Sun, 31 Aug 2008 20:25:41 +0000 (20:25 +0000)
org.aspectj.ajdt.core/src/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java

index a796e43d3af1194e260dd16e7868140d38c2547e..91391e23e60f91aa5b079cc1366f3d18aac33e5a 100644 (file)
@@ -398,25 +398,25 @@ public class AjASTConverter extends ASTConverter {
                                declareDeclaration = new DeclareAtTypeDeclaration(this.ast);
                                ((DeclareAtTypeDeclaration) declareDeclaration).setPatternNode(convert(da.getTypePattern()));
                                SimpleName annotationName = new SimpleName(this.ast);
-                               annotationName.internalSetIdentifier(new String(da.getAnnotationString()));
+                               annotationName.internalSetIdentifier(da.getAnnotationString());
                                ((DeclareAtTypeDeclaration) declareDeclaration).setAnnotationName(annotationName);
                        } else if (da.getKind().equals(DeclareAnnotation.AT_CONSTRUCTOR)) {
                                declareDeclaration = new DeclareAtConstructorDeclaration(this.ast);
                                ((DeclareAtConstructorDeclaration) declareDeclaration).setPatternNode(convert(da.getSignaturePattern()));
                                SimpleName annotationName = new SimpleName(this.ast);
-                               annotationName.internalSetIdentifier(new String(da.getAnnotationString()));
+                               annotationName.internalSetIdentifier(da.getAnnotationString());
                                ((DeclareAtConstructorDeclaration) declareDeclaration).setAnnotationName(annotationName);
                        } else if (da.getKind().equals(DeclareAnnotation.AT_FIELD)) {
                                declareDeclaration = new DeclareAtFieldDeclaration(this.ast);
                                ((DeclareAtFieldDeclaration) declareDeclaration).setPatternNode(convert(da.getSignaturePattern()));
                                SimpleName annotationName = new SimpleName(this.ast);
-                               annotationName.internalSetIdentifier(new String(da.getAnnotationString()));
+                               annotationName.internalSetIdentifier(da.getAnnotationString());
                                ((DeclareAtFieldDeclaration) declareDeclaration).setAnnotationName(annotationName);
                        } else if (da.getKind().equals(DeclareAnnotation.AT_METHOD)) {
                                declareDeclaration = new DeclareAtMethodDeclaration(this.ast);
                                ((DeclareAtMethodDeclaration) declareDeclaration).setPatternNode(convert(da.getSignaturePattern()));
                                SimpleName annotationName = new SimpleName(this.ast);
-                               annotationName.internalSetIdentifier(new String(da.getAnnotationString()));
+                               annotationName.internalSetIdentifier(da.getAnnotationString());
                                ((DeclareAtMethodDeclaration) declareDeclaration).setAnnotationName(annotationName);
                        }
                } else if (declare instanceof DeclareErrorOrWarning) {