cleanup after review - use option for decompiler banner text

This commit is contained in:
Egor.Ushakov
2014-10-08 12:34:51 +04:00
parent 1e3d5276a8
commit 37422ead1c
6 changed files with 14 additions and 15 deletions

View File

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