diff options
author | Andrey Turbanov <turbanoff@gmail.com> | 2021-12-05 23:23:51 +0300 |
---|---|---|
committer | Andrey Turbanov <turbanoff@gmail.com> | 2021-12-05 23:23:51 +0300 |
commit | 80e0c5adc8f534bee0914c5f9e4b82ce417aaf69 (patch) | |
tree | 70f7f54d6b858ae510c6d4488f6c2e792f00478b /org.aspectj.matcher | |
parent | 7a10203a7c9c846b6778c269cb529242b893149d (diff) | |
download | aspectj-80e0c5adc8f534bee0914c5f9e4b82ce417aaf69.tar.gz aspectj-80e0c5adc8f534bee0914c5f9e4b82ce417aaf69.zip |
Replace more usages of StringBuffer with StringBuilder
Diffstat (limited to 'org.aspectj.matcher')
-rw-r--r-- | org.aspectj.matcher/src/main/java/org/aspectj/weaver/TypeFactory.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.aspectj.matcher/src/main/java/org/aspectj/weaver/TypeFactory.java b/org.aspectj.matcher/src/main/java/org/aspectj/weaver/TypeFactory.java index 69d788f46..3d4c0d46d 100644 --- a/org.aspectj.matcher/src/main/java/org/aspectj/weaver/TypeFactory.java +++ b/org.aspectj.matcher/src/main/java/org/aspectj/weaver/TypeFactory.java @@ -113,7 +113,7 @@ public class TypeFactory { return new UnresolvedType(signature, signatureErasure, UnresolvedType.NONE); } else { int endOfParams = locateMatchingEndAngleBracket(signature, startOfParams); - StringBuffer erasureSig = new StringBuffer(signature); + StringBuilder erasureSig = new StringBuilder(signature); erasureSig.setCharAt(0, 'L'); while (startOfParams != -1) { erasureSig.delete(startOfParams, endOfParams + 1); @@ -210,7 +210,7 @@ public class TypeFactory { return new UnresolvedType(signature); } else { int endOfParams = locateMatchingEndAngleBracket(signature, leftAngleBracket); - StringBuffer erasureSig = new StringBuffer(signature); + StringBuilder erasureSig = new StringBuilder(signature); erasureSig.setCharAt(0, 'L'); while (leftAngleBracket != -1) { erasureSig.delete(leftAngleBracket, endOfParams + 1); @@ -275,7 +275,7 @@ public class TypeFactory { return idx; } - private static int locateFirstBracket(StringBuffer signature) { + private static int locateFirstBracket(StringBuilder signature) { int idx = 0; int max = signature.length(); while (idx < max) { |