decompiler: move generated lines as it is stated in debug line table (disabled for now)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user