diff --git a/javafx-template/src/main/java/app/Calc.java b/javafx-template/src/main/java/app/Calc.java index 231878c..6c740f4 100644 --- a/javafx-template/src/main/java/app/Calc.java +++ b/javafx-template/src/main/java/app/Calc.java @@ -89,8 +89,8 @@ public class Calc { if (getOperandCount() < 2) { throw new IllegalStateException("Too few operands (" + getOperandCount() + ") on the stack"); } - var op1 = popOperand(); var op2 = popOperand(); + var op1 = popOperand(); var result = op.apply(op1, op2); pushOperand(result); return result; diff --git a/modules-template/core/src/main/java/core/Calc.java b/modules-template/core/src/main/java/core/Calc.java index 9b0f4c9..ed63b11 100644 --- a/modules-template/core/src/main/java/core/Calc.java +++ b/modules-template/core/src/main/java/core/Calc.java @@ -85,8 +85,8 @@ public class Calc { if (getOperandCount() < 2) { throw new IllegalStateException("Too few operands (" + getOperandCount() + ") on the stack"); } - var op1 = popOperand(); var op2 = popOperand(); + var op1 = popOperand(); var result = op.apply(op1, op2); pushOperand(result); return result; diff --git a/modules-template/ui/pom.xml b/modules-template/ui/pom.xml index 8bc1cfe..0660fec 100644 --- a/modules-template/ui/pom.xml +++ b/modules-template/ui/pom.xml @@ -1,7 +1,6 @@ 4.0.0 - it1901 modules-ui diff --git a/packages-template/src/main/java/core/Calc.java b/packages-template/src/main/java/core/Calc.java index 9b0f4c9..ed63b11 100644 --- a/packages-template/src/main/java/core/Calc.java +++ b/packages-template/src/main/java/core/Calc.java @@ -85,8 +85,8 @@ public class Calc { if (getOperandCount() < 2) { throw new IllegalStateException("Too few operands (" + getOperandCount() + ") on the stack"); } - var op1 = popOperand(); var op2 = popOperand(); + var op1 = popOperand(); var result = op.apply(op1, op2); pushOperand(result); return result;