From: aclement Date: Sun, 31 Aug 2008 20:25:41 +0000 (+0000) Subject: dont call string ctor with a string X-Git-Tag: V1_6_2~131 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=323e9a42d7b7d46ca7de95c23b0e5968dd68fc82;p=aspectj.git dont call string ctor with a string --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java b/org.aspectj.ajdt.core/src/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java index a796e43d3..91391e23e 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java @@ -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) {