From 290386ef3aa800288e6474f092e46312d20d33e9 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 28 May 2008 21:32:23 +0000 Subject: [PATCH] reduce string garbage --- weaver/src/org/aspectj/weaver/NameMangler.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/weaver/src/org/aspectj/weaver/NameMangler.java b/weaver/src/org/aspectj/weaver/NameMangler.java index ab3c28909..94fe46565 100644 --- a/weaver/src/org/aspectj/weaver/NameMangler.java +++ b/weaver/src/org/aspectj/weaver/NameMangler.java @@ -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) { -- 2.39.5