Code cleanup (#1461)

* Code cleanup

* Fix flux tests

* Fix checkstyle errors

* Fix compile error
This commit is contained in:
Ilkka Seppälä authored and GitHub committed 2020-07-30 20:28:47 +03:00
1 parent 5381387026
commit 417f21ed3d
243 files changed
+1154 -1162

No files matched your search

@@ -30,9 +30,9 @@ import java.util.Stack;
*/
public class VirtualMachine {
private Stack<Integer> stack = new Stack<>();
private final Stack<Integer> stack = new Stack<>();
private Wizard[] wizards = new Wizard[2];
private final Wizard[] wizards = new Wizard[2];
/**
* Constructor.
@@ -104,7 +104,7 @@ public class VirtualMachineTest {
bytecode[2] = LITERAL.getIntValue();
bytecode[3] = 50; // health amount
bytecode[4] = SET_HEALTH.getIntValue();
bytecode[5] = LITERAL.getIntValue();;
bytecode[5] = LITERAL.getIntValue();
bytecode[6] = wizardNumber;
bytecode[7] = GET_HEALTH.getIntValue();