aboutsummaryrefslogtreecommitdiffstats
path: root/weaver/src/test/java
diff options
context:
space:
mode:
authorAndrey Turbanov <turbanoff@gmail.com>2021-11-20 17:16:22 +0300
committerAndrey Turbanov <turbanoff@gmail.com>2021-11-20 17:22:06 +0300
commitb1c52e2f5eb624037b8c799c20fbd1b4fd611d9a (patch)
tree33d7b6e8f733f20514f46e7871b29e26de47913d /weaver/src/test/java
parent0f85ca109b9e6ab849e201e76f62d5023cbfcb98 (diff)
downloadaspectj-b1c52e2f5eb624037b8c799c20fbd1b4fd611d9a.tar.gz
aspectj-b1c52e2f5eb624037b8c799c20fbd1b4fd611d9a.zip
Replace uses of StringBuffer with StringBuilder.
StringBuffer is a legacy synchronized class. StringBuilder is a direct replacement to StringBuffer which generally have better performance.
Diffstat (limited to 'weaver/src/test/java')
-rw-r--r--weaver/src/test/java/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java2
-rw-r--r--weaver/src/test/java/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/weaver/src/test/java/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java b/weaver/src/test/java/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java
index 91c3ead95..612e83e7d 100644
--- a/weaver/src/test/java/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java
+++ b/weaver/src/test/java/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java
@@ -255,7 +255,7 @@ public abstract class ReflectionBasedReferenceTypeDelegateTest extends TestCase
ReferenceType rawReflectType = (ReferenceType) world.resolve(javaUtilHashMap);
ResolvedMember[] rms1 = rawType.getDelegate().getDeclaredMethods();
ResolvedMember[] rms2 = rawReflectType.getDelegate().getDeclaredMethods();
- StringBuffer errors = new StringBuffer();
+ StringBuilder errors = new StringBuilder();
Set one = new HashSet();
for (ResolvedMember item : rms1) {
one.add(item.toString());
diff --git a/weaver/src/test/java/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java b/weaver/src/test/java/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java
index 226f7bec0..a0029b044 100644
--- a/weaver/src/test/java/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java
+++ b/weaver/src/test/java/org/aspectj/weaver/tools/Java15PointcutExpressionTest.java
@@ -295,7 +295,7 @@ public class Java15PointcutExpressionTest extends TestCase {
expected.remove(nextToken);
}
if (expected.size()>0) { // we have excess ones!
- StringBuffer excessTokens = new StringBuffer();
+ StringBuilder excessTokens = new StringBuilder();
for (String string : expected) {
excessTokens.append(string).append(" ");
}
@@ -313,7 +313,7 @@ public class Java15PointcutExpressionTest extends TestCase {
expected.remove(nextToken);
}
if (expected.size()>0) { // we have excess ones!
- StringBuffer excessTokens = new StringBuffer();
+ StringBuilder excessTokens = new StringBuilder();
for (String string : expected) {
excessTokens.append(string).append(" ");
}