aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2020-10-25 07:21:52 +0000
committerDominik Stadler <centic@apache.org>2020-10-25 07:21:52 +0000
commitce51aaf2ddf62d7aa1e1d927714562f949b61286 (patch)
tree4f5427e74b8829e459199b3477bb7919047a3a84 /src/testcases
parent352f5a034c12d09756deac2a32ccf9770c39a664 (diff)
downloadpoi-ce51aaf2ddf62d7aa1e1d927714562f949b61286.tar.gz
poi-ce51aaf2ddf62d7aa1e1d927714562f949b61286.zip
Apply some IDE suggestions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882828 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/hssf/model/TestWorkbook.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/testcases/org/apache/poi/hssf/model/TestWorkbook.java b/src/testcases/org/apache/poi/hssf/model/TestWorkbook.java
index d3e99e510c..996f450922 100644
--- a/src/testcases/org/apache/poi/hssf/model/TestWorkbook.java
+++ b/src/testcases/org/apache/poi/hssf/model/TestWorkbook.java
@@ -29,10 +29,9 @@ import java.io.IOException;
import org.apache.poi.hssf.record.CountryRecord;
import org.apache.poi.hssf.record.FontRecord;
import org.apache.poi.hssf.record.RecalcIdRecord;
+import org.apache.poi.hssf.record.WriteAccessRecord;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.TestHSSFWorkbook;
-import org.apache.poi.ss.formula.OperationEvaluationContext;
-import org.apache.poi.ss.formula.eval.ValueEval;
import org.apache.poi.ss.formula.functions.FreeRefFunction;
import org.apache.poi.ss.formula.udf.AggregatingUDFFinder;
import org.apache.poi.ss.formula.udf.DefaultUDFFinder;
@@ -108,11 +107,8 @@ public final class TestWorkbook {
InternalWorkbook wb = TestHSSFWorkbook.getInternalWorkbook(hwb);
assertNotNull(wb.getNameXPtg("ISODD", AggregatingUDFFinder.DEFAULT));
- FreeRefFunction NotImplemented = new FreeRefFunction() {
- @Override
- public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
- throw new RuntimeException("not implemented");
- }
+ FreeRefFunction NotImplemented = (args, ec) -> {
+ throw new RuntimeException("not implemented");
};
/*
@@ -155,7 +151,7 @@ public final class TestWorkbook {
wb.setForceFormulaRecalculation(true); // resets the EngineId flag to zero
assertEquals(0, record.getEngineId());
assertFalse(wb.getForceFormulaRecalculation());
-
+
wb.close();
}
}