summaryrefslogtreecommitdiffstats
path: root/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java
diff options
context:
space:
mode:
authorEgor.Ushakov <egor.ushakov@jetbrains.com>2014-10-07 20:37:21 +0400
committerEgor.Ushakov <egor.ushakov@jetbrains.com>2014-10-07 20:39:03 +0400
commit125441a88fc58f74ecfe2c1081a04b6c4d05ea61 (patch)
treebe047a9e4ff42d483fd6f135e740038671af6ee8 /src/org/jetbrains/java/decompiler/util/InterpreterUtil.java
parent9f9da912f666dc2d25b7ba7e03283f13b4c5b4bf (diff)
downloadfernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.tar
fernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.tar.gz
fernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.tar.lz
fernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.tar.xz
fernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.zip
decompiler: move generated lines as it is stated in debug line table (disabled for now)
Diffstat (limited to 'src/org/jetbrains/java/decompiler/util/InterpreterUtil.java')
-rw-r--r--src/org/jetbrains/java/decompiler/util/InterpreterUtil.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java b/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java
index eaada90..50411bc 100644
--- a/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java
+++ b/src/org/jetbrains/java/decompiler/util/InterpreterUtil.java
@@ -16,6 +16,7 @@
package org.jetbrains.java.decompiler.util;
import org.jetbrains.java.decompiler.main.DecompilerContext;
+import org.jetbrains.java.decompiler.main.TextBuffer;
import org.jetbrains.java.decompiler.main.extern.IFernflowerPreferences;
import java.io.*;
@@ -91,12 +92,12 @@ public class InterpreterUtil {
public static String getIndentString(int length) {
if (length == 0) return "";
- StringBuilder buf = new StringBuilder();
+ TextBuffer buf = new TextBuffer();
appendIndent(buf, length);
return buf.toString();
}
- public static void appendIndent(StringBuilder buffer, int length) {
+ public static void appendIndent(TextBuffer buffer, int length) {
if (length == 0) return;
String indent = (String)DecompilerContext.getProperty(IFernflowerPreferences.INDENT_STRING);
while (length-- > 0) {