diff options
author | Andrey Turbanov <turbanoff@gmail.com> | 2021-11-20 17:16:22 +0300 |
---|---|---|
committer | Andrey Turbanov <turbanoff@gmail.com> | 2021-11-20 17:22:06 +0300 |
commit | b1c52e2f5eb624037b8c799c20fbd1b4fd611d9a (patch) | |
tree | 33d7b6e8f733f20514f46e7871b29e26de47913d /testing-drivers | |
parent | 0f85ca109b9e6ab849e201e76f62d5023cbfcb98 (diff) | |
download | aspectj-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 'testing-drivers')
-rw-r--r-- | testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java b/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java index 3f3ab1c25..8112400d0 100644 --- a/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java +++ b/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java @@ -889,7 +889,7 @@ class TestMaker { if (fileName.endsWith(".java")) { fileName = fileName.substring(0, fileName.length() - 5); } - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); String filePath = file.getParentFile().getAbsolutePath(); String dirPath = baseDir.getAbsolutePath(); String pack = null; @@ -970,7 +970,7 @@ class TestMaker { } else if (null == dir) { dir = new File("."); } - StringBuffer testName = new StringBuffer(); + StringBuilder testName = new StringBuilder(); int pr = spec.getBugId(); if (0 < pr) { testName.append("PR#" + pr + " "); |