diff options
Diffstat (limited to 'org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java')
-rw-r--r-- | org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java b/org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java index 64ae458d2..fda448d5e 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/MemberImpl.java @@ -381,17 +381,13 @@ public class MemberImpl implements Member { } public String getParameterSignature() { - if (paramSignature != null) { - return paramSignature; - } - StringBuffer sb = new StringBuffer(); - sb.append("("); - for (int i = 0; i < parameterTypes.length; i++) { - UnresolvedType tx = parameterTypes[i]; - sb.append(tx.getSignature()); + if (paramSignature == null) { + StringBuilder sb = new StringBuilder("("); + for (UnresolvedType parameterType : parameterTypes) { + sb.append(parameterType.getSignature()); + } + paramSignature = sb.append(")").toString(); } - sb.append(")"); - paramSignature = sb.toString(); return paramSignature; } |