]> source.dussan.org Git - aspectj.git/commitdiff
reduce string garbage
authoraclement <aclement>
Wed, 28 May 2008 21:32:23 +0000 (21:32 +0000)
committeraclement <aclement>
Wed, 28 May 2008 21:32:23 +0000 (21:32 +0000)
weaver/src/org/aspectj/weaver/NameMangler.java

index ab3c2890945642b70931a3f3478eddb0684c4454..94fe46565698520c2136002ada833ab9f2ba519a 100644 (file)
@@ -358,15 +358,10 @@ public class NameMangler {
                        return enclosingType.getName() + "$AjcClosure"  + index;
        }
 
-       public static String aroundCallbackMethodName(
-               Member shadowSig,
-               LazyClassGen enclosingType) 
-       {
-               String ret =
-                       shadowSig.getExtractableName()
-                               + "_aroundBody"
-                               + enclosingType.getNewGeneratedNameTag();
-               return ret;
+       public static String aroundCallbackMethodName(Member shadowSig, LazyClassGen enclosingType) {
+               StringBuffer ret = new StringBuffer();
+               ret.append(shadowSig.getExtractableName()).append("_aroundBody").append(enclosingType.getNewGeneratedNameTag());
+               return ret.toString();
        }
 
        public static String proceedMethodName(String adviceMethodName) {