Code Cleanup
This commit is contained in:
parent
845ae248ab
commit
5334a2da20
1 changed files with 22 additions and 21 deletions
|
@ -25,7 +25,7 @@ public class ExampleStringDecrypter extends Plugin {
|
||||||
boolean needsWarning = false;
|
boolean needsWarning = false;
|
||||||
|
|
||||||
for (ClassNode cn : classNodesList) {
|
for (ClassNode cn : classNodesList) {
|
||||||
|
try {
|
||||||
//load the class node into the classloader
|
//load the class node into the classloader
|
||||||
BCV.getClassNodeLoader().addClass(cn);
|
BCV.getClassNodeLoader().addClass(cn);
|
||||||
|
|
||||||
|
@ -43,14 +43,16 @@ public class ExampleStringDecrypter extends Plugin {
|
||||||
if (s != null && !s.isEmpty())
|
if (s != null && !s.isEmpty())
|
||||||
gui.appendText(cn + ":" + s);
|
gui.appendText(cn + ":" + s);
|
||||||
}
|
}
|
||||||
|
} catch (Exception ignored) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
gui.appendText("Failed loading class " + cn.name);
|
gui.appendText("Failed loading class " + cn.name);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
needsWarning = true;
|
needsWarning = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (needsWarning) {
|
if (needsWarning) {
|
||||||
BytecodeViewer.showMessage("Some classes failed to decrypt, if you'd like to decrypt all of them\n"
|
BytecodeViewer.showMessage("Some classes failed to decrypt, if you'd like to decrypt all of them\n"
|
||||||
|
@ -60,5 +62,4 @@ public class ExampleStringDecrypter extends Plugin {
|
||||||
gui.setVisible(true);
|
gui.setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue