aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher/src
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2021-12-10 15:55:57 -0800
committerGitHub <noreply@github.com>2021-12-10 15:55:57 -0800
commit3f6f25d6a1dd41632dcdfeb98f455aea2737cb7f (patch)
tree70f7f54d6b858ae510c6d4488f6c2e792f00478b /org.aspectj.matcher/src
parent7a10203a7c9c846b6778c269cb529242b893149d (diff)
parent80e0c5adc8f534bee0914c5f9e4b82ce417aaf69 (diff)
downloadaspectj-3f6f25d6a1dd41632dcdfeb98f455aea2737cb7f.tar.gz
aspectj-3f6f25d6a1dd41632dcdfeb98f455aea2737cb7f.zip
Merge pull request #107 from turbanoff/more_StringBuilder_instead_of_StringBuffer
Replace more usages of StringBuffer with StringBuilder
Diffstat (limited to 'org.aspectj.matcher/src')
-rw-r--r--org.aspectj.matcher/src/main/java/org/aspectj/weaver/TypeFactory.java6
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) {