decompiler: move generated lines as it is stated in debug line table (disabled for now)

This commit is contained in:
Egor.Ushakov
2014-10-07 20:37:21 +04:00
parent 9f9da912f6
commit 125441a88f
18 changed files with 231 additions and 40 deletions

View File

@@ -80,11 +80,11 @@ public class Fernflower implements IDecompiledData {
}
@Override
public String getClassContent(StructClass cl) {
public TextBuffer getClassContent(StructClass cl) {
try {
StringBuilder buffer = new StringBuilder(ClassesProcessor.AVERAGE_CLASS_SIZE);
TextBuffer buffer = new TextBuffer(ClassesProcessor.AVERAGE_CLASS_SIZE);
classesProcessor.writeClass(cl, buffer);
return buffer.toString();
return buffer;
}
catch (Throwable ex) {
DecompilerContext.getLogger().writeMessage("Class " + cl.qualifiedName + " couldn't be fully decompiled.", ex);