summaryrefslogtreecommitdiffstats
path: root/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/jetbrains/java/decompiler/util/InterpreterUtil.java')
-rw-r--r--src/org/jetbrains/java/decompiler/util/InterpreterUtil.java10
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) {