diff options
Diffstat (limited to 'src/org/jetbrains/java/decompiler/util/InterpreterUtil.java')
-rw-r--r-- | src/org/jetbrains/java/decompiler/util/InterpreterUtil.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java b/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java index 50411bc..67af3ad 100644 --- a/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java +++ b/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java @@ -92,17 +92,12 @@ public class InterpreterUtil { public static String getIndentString(int length) { if (length == 0) return ""; - TextBuffer buf = new TextBuffer(); - appendIndent(buf, length); - return buf.toString(); - } - - public static void appendIndent(TextBuffer buffer, int length) { - if (length == 0) return; + StringBuilder buf = new StringBuilder(); String indent = (String)DecompilerContext.getProperty(IFernflowerPreferences.INDENT_STRING); while (length-- > 0) { - buffer.append(indent); + buf.append(indent); } + return buf.toString(); } public static boolean equalSets(Collection<?> c1, Collection<?> c2) { |