summaryrefslogtreecommitdiffstats
path: root/src/java/net/sf/antcontrib
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/net/sf/antcontrib')
-rw-r--r--src/java/net/sf/antcontrib/math/MathTask.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/java/net/sf/antcontrib/math/MathTask.java b/src/java/net/sf/antcontrib/math/MathTask.java
index bdcc12d..e792b09 100644
--- a/src/java/net/sf/antcontrib/math/MathTask.java
+++ b/src/java/net/sf/antcontrib/math/MathTask.java
@@ -107,16 +107,12 @@ public class MathTask
public void setOperand1(String operand1)
{
- Numeric n = new Numeric();
- n.setValue(operand1);
- getLocalOperation().addConfiguredNumeric(n);
+ getLocalOperation().setArg1(operand1);
}
public void setOperand2(String operand2)
{
- Numeric n = new Numeric();
- n.setValue(operand2);
- getLocalOperation().addConfiguredNumeric(n);
+ getLocalOperation().setArg2(operand2);
}
public Operation createOperation()