mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-28 01:20:46 +00:00
netbeans inpector fixes
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user