netbeans inpector fixes

This commit is contained in:
2016-04-29 20:54:38 +02:00
parent 577bdd4844
commit 508c618b37
37 changed files with 231 additions and 95 deletions
@@ -67,6 +67,7 @@ public class ActionListReader {
* @param ip
* @param endIp
* @param path
* @param deobfuscationMode
* @return List of actions
* @throws IOException
* @throws java.lang.InterruptedException
@@ -35,7 +35,7 @@ import java.util.Random;
*/
public class RandomNumberActionItem extends ActionItem {
private static Random rnd = new Random();
private static final Random rnd = new Random();
public RandomNumberActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem maximum) {
super(instruction, lineStartIns, PRECEDENCE_PRIMARY, maximum);
@@ -116,8 +116,8 @@ public class ActionGotoFrame2 extends Action {
String frame = EcmaScript.toString(lda.stack.pop());
String target = "/";
if (frame.contains(":")) {
target = frame.substring(0, frame.indexOf(":"));
frame = frame.substring(frame.indexOf(":") + 1);
target = frame.substring(0, frame.indexOf(':'));
frame = frame.substring(frame.indexOf(':') + 1);
}
if (frame.matches("[1-9][0-9]*|0")) {
int frameNum = Integer.parseInt(frame);
@@ -51,7 +51,7 @@ public class ActionInitObject extends Action {
return false;
}
int num = (int) (double) (Double) lda.popAsNumber();
int num = (int) (double) lda.popAsNumber();
if (lda.stack.size() < 2 * num) {
return false;
}
@@ -52,7 +52,7 @@ public class ActionNewObject extends Action {
}
String objectName = lda.popAsString();
int numArgs = (int) (double) (Double) lda.popAsNumber();
int numArgs = (int) (double) lda.popAsNumber();
if (lda.stack.size() < numArgs) {
return false;
}