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()) file.resolveSibling(fileName + ".java"), Charset.defaultCharset())
) { ) {
TypeName type = TypeName.fromPath(mOutDir.relativize(file.resolveSibling(fileName))); 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(); out.newLine();
String line; String line;
while ((line = in.readLine()) != null) { while ((line = in.readLine()) != null) {
out.write("// "); out.write(";// ");
out.write(line); out.write(line);
out.newLine(); out.newLine();
} }
out.write("}"); out.write("}}");
out.newLine(); out.newLine();
} }
Files.delete(file); Files.delete(file);