From 323e9a42d7b7d46ca7de95c23b0e5968dd68fc82 Mon Sep 17 00:00:00 2001 From: aclement Date: Sun, 31 Aug 2008 20:25:41 +0000 Subject: [PATCH] dont call string ctor with a string --- .../aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) { -- 2.39.5