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

Fixed bug #317606.

parent f2432c3a
...@@ -105,8 +105,8 @@ public class AdviceAdapterUnitTest extends AbstractTest { ...@@ -105,8 +105,8 @@ public class AdviceAdapterUnitTest extends AbstractTest {
System.err.println(off().append("<").toString()); System.err.println(off().append("<").toString());
} }
private static StringBuffer off() { private static StringBuilder off() {
StringBuffer sb = new StringBuffer(); StringBuilder sb = new StringBuilder();
for (int i = 0; i < n; i++) { for (int i = 0; i < n; i++) {
sb.append(" "); sb.append(" ");
} }
......
...@@ -957,7 +957,7 @@ public class GASMifier extends ASMifier implements Opcodes { ...@@ -957,7 +957,7 @@ public class GASMifier extends ASMifier implements Opcodes {
static String getMethod(final String name, final String desc) { static String getMethod(final String name, final String desc) {
Type rt = Type.getReturnType(desc); Type rt = Type.getReturnType(desc);
Type[] argt = Type.getArgumentTypes(desc); Type[] argt = Type.getArgumentTypes(desc);
StringBuffer buf = new StringBuffer(); StringBuilder buf = new StringBuilder();
buf.append("Method.getMethod(\""); buf.append("Method.getMethod(\"");
buf.append(rt.getClassName()).append(' '); buf.append(rt.getClassName()).append(' ');
buf.append(name).append('('); buf.append(name).append('(');
......
...@@ -1866,7 +1866,7 @@ public class JSRInlinerAdapterUnitTest extends TestCase { ...@@ -1866,7 +1866,7 @@ public class JSRInlinerAdapterUnitTest extends TestCase {
TraceMethodVisitor tmv = new TraceMethodVisitor(tv); TraceMethodVisitor tmv = new TraceMethodVisitor(tv);
mn.accept(tmv); mn.accept(tmv);
StringBuffer sb = new StringBuffer(); StringBuilder sb = new StringBuilder();
for (int i = 0; i < tv.text.size(); i++) { for (int i = 0; i < tv.text.size(); i++) {
sb.append(tv.text.get(i)); sb.append(tv.text.get(i));
} }
......
...@@ -151,7 +151,7 @@ public class ASMMemTest { ...@@ -151,7 +151,7 @@ public class ASMMemTest {
int min = (int) (time / (60 * 1000)); int min = (int) (time / (60 * 1000));
int sec = (int) ((time / 1000) % 60); int sec = (int) ((time / 1000) % 60);
int msec = (int) (time % 1000); int msec = (int) (time % 1000);
StringBuffer sbuf = new StringBuffer(30); StringBuilder sbuf = new StringBuilder(30);
if (min > 0) { if (min > 0) {
sbuf.append(min); sbuf.append(min);
sbuf.append("min "); sbuf.append("min ");
...@@ -175,7 +175,7 @@ public class ASMMemTest { ...@@ -175,7 +175,7 @@ public class ASMMemTest {
int mb = (int) ((mem >> 20) & 0x3FF); int mb = (int) ((mem >> 20) & 0x3FF);
int kb = (int) ((mem >> 10) & 0x3FF); int kb = (int) ((mem >> 10) & 0x3FF);
int bytes = (int) (mem & 0x3FF); int bytes = (int) (mem & 0x3FF);
StringBuffer sbuf = new StringBuffer(30); StringBuilder sbuf = new StringBuilder(30);
if (gb > 0) { if (gb > 0) {
sbuf.append(gb); sbuf.append(gb);
sbuf.append("GB "); sbuf.append("GB ");
......
Supports Markdown
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