diff options
Diffstat (limited to 'src/org/jetbrains/java/decompiler/util')
-rw-r--r-- | src/org/jetbrains/java/decompiler/util/InterpreterUtil.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java b/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java index cc4e4bd..5f48e32 100644 --- a/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java +++ b/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java @@ -60,12 +60,16 @@ public class InterpreterUtil { } public static String getIndentString(int length) { - String indent = (String)DecompilerContext.getProperty(IFernflowerPreferences.INDENT_STRING); StringBuilder buf = new StringBuilder(); + appendIndent(buf, length); + return buf.toString(); + } + + public static void appendIndent(StringBuilder buffer, int length) { + String indent = (String)DecompilerContext.getProperty(IFernflowerPreferences.INDENT_STRING); while (length-- > 0) { - buf.append(indent); + buffer.append(indent); } - return buf.toString(); } public static boolean equalSets(Collection<?> c1, Collection<?> c2) { |