Now adding line breakpoints when debugging should be easier in Eclipse, Netbeans and IDEA.

This commit is contained in:
Ryszard Wiśniewski 2013-05-02 17:48:14 +02:00
parent ed0e4eb64c
commit fba0918b80

View File

@ -86,17 +86,17 @@ public class SmaliDecoder {
file.resolveSibling(fileName + ".java"), Charset.defaultCharset())
) {
TypeName type = TypeName.fromPath(mOutDir.relativize(file.resolveSibling(fileName)));
out.write("package " + type.package_ + "; class " + type.getName(true, true) + " {");
out.write("package " + type.package_ + "; class " + type.getName(true, true) + " { void a() { int a;");
out.newLine();
String line;
while ((line = in.readLine()) != null) {
out.write("// ");
out.write(";// ");
out.write(line);
out.newLine();
}
out.write("}");
out.write("}}");
out.newLine();
}
Files.delete(file);