decompiler: use more TextBuffer methods

This commit is contained in:
Egor.Ushakov
2014-10-21 21:10:16 +04:00
parent 56b3edd3ca
commit eb3db8dc8b
8 changed files with 40 additions and 72 deletions

View File

@@ -109,9 +109,7 @@ public class ImportCollector {
}
public int writeImports(TextBuffer buffer) {
int importlines_written = 0;
String new_line_separator = DecompilerContext.getNewLineSeparator();
List<String> imports = packImports();
@@ -119,7 +117,7 @@ public class ImportCollector {
buffer.append("import ");
buffer.append(s);
buffer.append(";");
buffer.append(new_line_separator);
buffer.appendLineSeparator();
importlines_written++;
}