Code Cleanup

This commit is contained in:
Konloch 2022-01-22 13:06:18 -06:00
parent 845ae248ab
commit 5334a2da20

View file

@ -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);
} }
} }
} }