From 80e0c5adc8f534bee0914c5f9e4b82ce417aaf69 Mon Sep 17 00:00:00 2001 From: Andrey Turbanov Date: Sun, 5 Dec 2021 23:23:51 +0300 Subject: Replace more usages of StringBuffer with StringBuilder --- .../src/main/java/org/aspectj/weaver/TypeFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'org.aspectj.matcher') 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) { -- cgit v1.2.3