diff --git a/src/java/com/samskivert/depot/operator/Arithmetic.java b/src/java/com/samskivert/depot/operator/Arithmetic.java index adaba86..30dafd2 100644 --- a/src/java/com/samskivert/depot/operator/Arithmetic.java +++ b/src/java/com/samskivert/depot/operator/Arithmetic.java @@ -53,10 +53,10 @@ public abstract class Arithmetic extends MultiOperator public Object evaluate (Object[] operands) { return evaluate(operands, "+", new Accumulator() { - @Override public Double accumulate (Double left, Double right) { + public Double accumulate (Double left, Double right) { return left + right; }}, new Accumulator() { - @Override public Long accumulate (Long left, Long right) { + public Long accumulate (Long left, Long right) { return left + right; }}); } @@ -84,10 +84,10 @@ public abstract class Arithmetic extends MultiOperator public Object evaluate (Object[] operands) { return evaluate(operands, "-", new Accumulator() { - @Override public Double accumulate (Double left, Double right) { + public Double accumulate (Double left, Double right) { return left - right; }}, new Accumulator() { - @Override public Long accumulate (Long left, Long right) { + public Long accumulate (Long left, Long right) { return left - right; }}); } @@ -115,10 +115,10 @@ public abstract class Arithmetic extends MultiOperator public Object evaluate (Object[] operands) { return evaluate(operands, "*", new Accumulator() { - @Override public Double accumulate (Double left, Double right) { + public Double accumulate (Double left, Double right) { return left * right; }}, new Accumulator() { - @Override public Long accumulate (Long left, Long right) { + public Long accumulate (Long left, Long right) { return left * right; }}); } @@ -151,10 +151,10 @@ public abstract class Arithmetic extends MultiOperator } } return evaluate(operands, "/", new Accumulator() { - @Override public Double accumulate (Double left, Double right) { + public Double accumulate (Double left, Double right) { return left / right; }}, new Accumulator() { - @Override public Long accumulate (Long left, Long right) { + public Long accumulate (Long left, Long right) { return left / right; }}); } @@ -182,7 +182,7 @@ public abstract class Arithmetic extends MultiOperator public Object evaluate (Object[] operands) { return evaluate(operands, "&", null, new Accumulator() { - @Override public Long accumulate (Long left, Long right) { + public Long accumulate (Long left, Long right) { return left & right; }}); } @@ -210,7 +210,7 @@ public abstract class Arithmetic extends MultiOperator public Object evaluate (Object[] operands) { return evaluate(operands, "|", null, new Accumulator() { - @Override public Long accumulate (Long left, Long right) { + public Long accumulate (Long left, Long right) { return left | right; }}); } diff --git a/src/java/com/samskivert/depot/operator/SQLOperator.java b/src/java/com/samskivert/depot/operator/SQLOperator.java index 94c9e81..e7c1d51 100644 --- a/src/java/com/samskivert/depot/operator/SQLOperator.java +++ b/src/java/com/samskivert/depot/operator/SQLOperator.java @@ -153,7 +153,7 @@ public interface SQLOperator extends SQLExpression public static abstract class BaseOperator implements SQLOperator { public static Function INTEGRAL = new Function() { - @Override public Long apply (Object o) { + public Long apply (Object o) { if ((o instanceof Integer) || (o instanceof Long)) { return ((Number) o).longValue(); } @@ -162,19 +162,19 @@ public interface SQLOperator extends SQLExpression }; public static Function NUMERICAL = new Function() { - @Override public Double apply (Object o) { + public Double apply (Object o) { return (o instanceof Number) ? ((Number) o).doubleValue() : null; } }; public static Function STRING = new Function() { - @Override public String apply (Object o) { + public String apply (Object o) { return (o instanceof String) ? (String) o : null; } }; public static Function DATE = new Function() { - @Override public Date apply (Object o) { + public Date apply (Object o) { return (o instanceof Date) ? (Date) o : null; } };