Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx committed Dec 5, 2023
1 parent eda6416 commit 8854d68
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package the.bytecode.club.bytecodeviewer.decompilers.impl;

import com.googlecode.d2j.smali.BaksmaliCmd;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
Expand Down Expand Up @@ -73,7 +74,7 @@ public String decompileClassNode(ClassNode cn, byte[] b)
Dex2Jar.saveAsDex(tempClass, tempDex, true);

try {
com.googlecode.d2j.smali.BaksmaliCmd.main(tempDex.getAbsolutePath(),
BaksmaliCmd.main(tempDex.getAbsolutePath(),
"-o", tempDexOut.getAbsolutePath());
} catch (Exception e) {
StringWriter sw = new StringWriter();
Expand Down Expand Up @@ -116,7 +117,7 @@ public String decompileClassNode(ClassNode cn, byte[] b)

exception += ExceptionUI.SEND_STACKTRACE_TO_NL + sw;
}

return SMALI + " " + DISASSEMBLER + " " + ERROR + "! " + ExceptionUI.SEND_STACKTRACE_TO +
nl + nl + TranslatedStrings.SUGGESTED_FIX_DECOMPILER_ERROR +
nl + nl + exception;
Expand Down

0 comments on commit 8854d68

Please sign in to comment.