From 125441a88fc58f74ecfe2c1081a04b6c4d05ea61 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Tue, 7 Oct 2014 20:37:21 +0400 Subject: decompiler: move generated lines as it is stated in debug line table (disabled for now) --- src/org/jetbrains/java/decompiler/util/InterpreterUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/org/jetbrains/java/decompiler/util/InterpreterUtil.java') 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) { -- cgit v1.2.3