Move variable declaration to top of file
@@ -42,6 +42,8 @@ public class ColumnTest {
ColumnType.STRING // polling org
};
+ private static final BinaryOperator<Double> sum = (d1, d2) -> d1 + d2;
+
private Table table;
@Before
@@ -224,8 +226,6 @@ public class ColumnTest {
assertFalse(DoubleColumn.create("t1").min((d1, d2) -> (int) (d1 - d2)).isPresent());
}
- private BinaryOperator<Double> sum = (d1, d2) -> d1 + d2;
-
@Test
public void testReduceTBinaryOperator() {
assertEquals(Double.valueOf(1.0), DoubleColumn.create("t1", new double[] {-1, 0, 1}).reduce(1.0, sum));
