Commit 3d2e7dc4 authored by ebruneton's avatar ebruneton
Browse files

Fixed bug #317606.

parent f2432c3a
......@@ -105,8 +105,8 @@ public class AdviceAdapterUnitTest extends AbstractTest {
System.err.println(off().append("<").toString());
}
private static StringBuffer off() {
StringBuffer sb = new StringBuffer();
private static StringBuilder off() {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < n; i++) {
sb.append(" ");
}
......
......@@ -957,7 +957,7 @@ public class GASMifier extends ASMifier implements Opcodes {
static String getMethod(final String name, final String desc) {
Type rt = Type.getReturnType(desc);
Type[] argt = Type.getArgumentTypes(desc);
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
buf.append("Method.getMethod(\"");
buf.append(rt.getClassName()).append(' ');
buf.append(name).append('(');
......
......@@ -1866,7 +1866,7 @@ public class JSRInlinerAdapterUnitTest extends TestCase {
TraceMethodVisitor tmv = new TraceMethodVisitor(tv);
mn.accept(tmv);
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < tv.text.size(); i++) {
sb.append(tv.text.get(i));
}
......
......@@ -151,7 +151,7 @@ public class ASMMemTest {
int min = (int) (time / (60 * 1000));
int sec = (int) ((time / 1000) % 60);
int msec = (int) (time % 1000);
StringBuffer sbuf = new StringBuffer(30);
StringBuilder sbuf = new StringBuilder(30);
if (min > 0) {
sbuf.append(min);
sbuf.append("min ");
......@@ -175,7 +175,7 @@ public class ASMMemTest {
int mb = (int) ((mem >> 20) & 0x3FF);
int kb = (int) ((mem >> 10) & 0x3FF);
int bytes = (int) (mem & 0x3FF);
StringBuffer sbuf = new StringBuffer(30);
StringBuilder sbuf = new StringBuilder(30);
if (gb > 0) {
sbuf.append(gb);
sbuf.append("GB ");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment