Skip to content

Commit f623755

Browse files
committed
refactor AbstractProfilingNestedDoubleCalc rm obsolet code
Signed-off-by: Stefan Bischof <[email protected]>
1 parent a17c9bf commit f623755

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

common/src/main/java/org/eclipse/daanse/olap/calc/base/nested/AbstractProfilingNestedDoubleCalc.java

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,23 @@
1414

1515
package org.eclipse.daanse.olap.calc.base.nested;
1616

17-
import org.eclipse.daanse.olap.api.Evaluator;
1817
import org.eclipse.daanse.olap.api.calc.Calc;
1918
import org.eclipse.daanse.olap.api.calc.DoubleCalc;
2019
import org.eclipse.daanse.olap.api.type.NumericType;
2120
import org.eclipse.daanse.olap.api.type.Type;
2221
import org.eclipse.daanse.olap.calc.base.AbstractProfilingNestedCalc;
23-
import org.eclipse.daanse.olap.fun.FunUtil;
2422

2523
/**
2624
* Abstract implementation of the
27-
* {@link org.eclipse.daanse.olap.api.calc.IntegerCalc} interface.
28-
*
29-
* Handles nested child and profiling
25+
* {@link org.eclipse.daanse.olap.api.calc.DoubleCalc} interface.
3026
*
27+
* Handles nested child and profiling.
3128
*/
3229
public abstract class AbstractProfilingNestedDoubleCalc extends AbstractProfilingNestedCalc<Double>
3330
implements DoubleCalc {
34-
/**
35-
* {@inheritDoc}
36-
*
37-
*/
31+
3832
protected AbstractProfilingNestedDoubleCalc(Type type, Calc<?>... calcs) {
3933
super(type, calcs);
4034
requiresType(NumericType.class);
4135
}
42-
43-
@Override
44-
public Double evaluateInternal(Evaluator evaluator) {
45-
final Double d = evaluate(evaluator);
46-
if (d == FunUtil.DOUBLE_NULL) {
47-
return null;
48-
}
49-
return Double.valueOf(d);
50-
}
5136
}

0 commit comments

Comments
 (0)