aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ss/formula
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-10-19 21:52:31 +0000
committerJaven O'Neal <onealj@apache.org>2016-10-19 21:52:31 +0000
commit99125ee19173959d42553f78c9ea936648f904b8 (patch)
treef5250e86fe41b26e92a6b26b6066dff811a484fd /src/testcases/org/apache/poi/ss/formula
parent9eef74edd1d49ef6b7245faa938c817a7fda2967 (diff)
downloadpoi-99125ee19173959d42553f78c9ea936648f904b8.tar.gz
poi-99125ee19173959d42553f78c9ea936648f904b8.zip
Eclipse automated refactor/cleanup: add missing @Override and @Deprecated annotations
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/formula')
-rw-r--r--src/testcases/org/apache/poi/ss/formula/BaseTestExternalFunctions.java2
-rw-r--r--src/testcases/org/apache/poi/ss/formula/EvaluationListener.java27
-rw-r--r--src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java27
-rw-r--r--src/testcases/org/apache/poi/ss/formula/TestFunctionRegistry.java4
-rw-r--r--src/testcases/org/apache/poi/ss/formula/atp/TestNetworkdaysFunction.java3
-rw-r--r--src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayFunction.java3
-rw-r--r--src/testcases/org/apache/poi/ss/formula/eval/TestExternalFunction.java6
-rw-r--r--src/testcases/org/apache/poi/ss/formula/eval/TestMultiSheetEval.java3
-rw-r--r--src/testcases/org/apache/poi/ss/formula/eval/TestRangeEval.java19
-rw-r--r--src/testcases/org/apache/poi/ss/formula/eval/forked/TestForkedEvaluator.java3
-rw-r--r--src/testcases/org/apache/poi/ss/formula/functions/AbstractNumericTestCase.java2
-rw-r--r--src/testcases/org/apache/poi/ss/formula/functions/EvalFactory.java19
-rw-r--r--src/testcases/org/apache/poi/ss/formula/functions/TestBin2Dec.java1
-rw-r--r--src/testcases/org/apache/poi/ss/formula/functions/TestCalendarFieldFunction.java1
-rw-r--r--src/testcases/org/apache/poi/ss/formula/functions/TestDate.java1
-rw-r--r--src/testcases/org/apache/poi/ss/formula/functions/TestDec2Bin.java1
-rw-r--r--src/testcases/org/apache/poi/ss/formula/functions/TestDec2Hex.java1
-rw-r--r--src/testcases/org/apache/poi/ss/formula/functions/TestHex2Dec.java1
-rw-r--r--src/testcases/org/apache/poi/ss/formula/udf/BaseTestUDFFinder.java1
19 files changed, 91 insertions, 34 deletions
diff --git a/src/testcases/org/apache/poi/ss/formula/BaseTestExternalFunctions.java b/src/testcases/org/apache/poi/ss/formula/BaseTestExternalFunctions.java
index b0d4b27f8b..764201594f 100644
--- a/src/testcases/org/apache/poi/ss/formula/BaseTestExternalFunctions.java
+++ b/src/testcases/org/apache/poi/ss/formula/BaseTestExternalFunctions.java
@@ -48,6 +48,7 @@ public abstract class BaseTestExternalFunctions {
//
}
+ @Override
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
if (args.length != 1 || !(args[0] instanceof StringEval)) {
return ErrorEval.VALUE_INVALID;
@@ -62,6 +63,7 @@ public abstract class BaseTestExternalFunctions {
//
}
+ @Override
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
if (args.length != 1 || !(args[0] instanceof StringEval)) {
return ErrorEval.VALUE_INVALID;
diff --git a/src/testcases/org/apache/poi/ss/formula/EvaluationListener.java b/src/testcases/org/apache/poi/ss/formula/EvaluationListener.java
index f8217764aa..babbbf62c6 100644
--- a/src/testcases/org/apache/poi/ss/formula/EvaluationListener.java
+++ b/src/testcases/org/apache/poi/ss/formula/EvaluationListener.java
@@ -27,32 +27,41 @@ import org.apache.poi.ss.formula.eval.ValueEval;
* @author Josh Micich
*/
public abstract class EvaluationListener implements IEvaluationListener {
- public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
+ @Override
+ public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
// do nothing
}
- public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
+ @Override
+ public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
// do nothing
}
- public void onStartEvaluate(EvaluationCell cell, ICacheEntry entry) {
+ @Override
+ public void onStartEvaluate(EvaluationCell cell, ICacheEntry entry) {
// do nothing
}
- public void onEndEvaluate(ICacheEntry entry, ValueEval result) {
+ @Override
+ public void onEndEvaluate(ICacheEntry entry, ValueEval result) {
// do nothing
}
- public void onClearWholeCache() {
+ @Override
+ public void onClearWholeCache() {
// do nothing
}
- public void onClearCachedValue(ICacheEntry entry) {
+ @Override
+ public void onClearCachedValue(ICacheEntry entry) {
// do nothing
}
- public void onChangeFromBlankValue(int sheetIndex, int rowIndex, int columnIndex,
+ @Override
+ public void onChangeFromBlankValue(int sheetIndex, int rowIndex, int columnIndex,
EvaluationCell cell, ICacheEntry entry) {
// do nothing
}
- public void sortDependentCachedValues(ICacheEntry[] entries) {
+ @Override
+ public void sortDependentCachedValues(ICacheEntry[] entries) {
// do nothing
}
- public void onClearDependentCachedValue(ICacheEntry entry, int depth) {
+ @Override
+ public void onClearDependentCachedValue(ICacheEntry entry, int depth) {
// do nothing
}
}
diff --git a/src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java b/src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java
index 14e9805770..6d87012b2c 100644
--- a/src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java
+++ b/src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java
@@ -67,7 +67,8 @@ public class TestEvaluationCache extends TestCase {
private EvaluationCell getCell(ICacheEntry a) {
return _formulaCellsByCacheEntry.get(a);
}
- public int compare(ICacheEntry oa, ICacheEntry ob) {
+ @Override
+ public int compare(ICacheEntry oa, ICacheEntry ob) {
EvaluationCell a = getCell(oa);
EvaluationCell b = getCell(ob);
int cmp;
@@ -99,24 +100,29 @@ public class TestEvaluationCache extends TestCase {
_formulaCellsByCacheEntry = new HashMap<ICacheEntry,EvaluationCell>();
_plainCellLocsByCacheEntry = new HashMap<ICacheEntry, Loc>();
}
- public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
+ @Override
+ public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
log("hit", rowIndex, columnIndex, result);
}
- public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
+ @Override
+ public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
Loc loc = new Loc(0, sheetIndex, rowIndex, columnIndex);
_plainCellLocsByCacheEntry.put(entry, loc);
log("value", rowIndex, columnIndex, entry.getValue());
}
- public void onStartEvaluate(EvaluationCell cell, ICacheEntry entry) {
+ @Override
+ public void onStartEvaluate(EvaluationCell cell, ICacheEntry entry) {
_formulaCellsByCacheEntry.put(entry, cell);
HSSFCell hc = _book.getSheetAt(0).getRow(cell.getRowIndex()).getCell(cell.getColumnIndex());
log("start", cell.getRowIndex(), cell.getColumnIndex(), FormulaExtractor.getPtgs(hc));
}
- public void onEndEvaluate(ICacheEntry entry, ValueEval result) {
+ @Override
+ public void onEndEvaluate(ICacheEntry entry, ValueEval result) {
EvaluationCell cell = _formulaCellsByCacheEntry.get(entry);
log("end", cell.getRowIndex(), cell.getColumnIndex(), result);
}
- public void onClearCachedValue(ICacheEntry entry) {
+ @Override
+ public void onClearCachedValue(ICacheEntry entry) {
int rowIndex;
int columnIndex;
EvaluationCell cell = _formulaCellsByCacheEntry.get(entry);
@@ -133,15 +139,18 @@ public class TestEvaluationCache extends TestCase {
}
log("clear", rowIndex, columnIndex, entry.getValue());
}
- public void sortDependentCachedValues(ICacheEntry[] entries) {
+ @Override
+ public void sortDependentCachedValues(ICacheEntry[] entries) {
Arrays.sort(entries, new FormulaCellCacheEntryComparer(_formulaCellsByCacheEntry));
}
- public void onClearDependentCachedValue(ICacheEntry entry, int depth) {
+ @Override
+ public void onClearDependentCachedValue(ICacheEntry entry, int depth) {
EvaluationCell cell = _formulaCellsByCacheEntry.get(entry);
log("clear" + depth, cell.getRowIndex(), cell.getColumnIndex(), entry.getValue());
}
- public void onChangeFromBlankValue(int sheetIndex, int rowIndex, int columnIndex,
+ @Override
+ public void onChangeFromBlankValue(int sheetIndex, int rowIndex, int columnIndex,
EvaluationCell cell, ICacheEntry entry) {
log("changeFromBlank", rowIndex, columnIndex, entry.getValue());
if (entry.getValue() == null) { // hack to tell the difference between formula and plain value
diff --git a/src/testcases/org/apache/poi/ss/formula/TestFunctionRegistry.java b/src/testcases/org/apache/poi/ss/formula/TestFunctionRegistry.java
index b6d118e89b..f816b6b413 100644
--- a/src/testcases/org/apache/poi/ss/formula/TestFunctionRegistry.java
+++ b/src/testcases/org/apache/poi/ss/formula/TestFunctionRegistry.java
@@ -52,6 +52,7 @@ public class TestFunctionRegistry extends TestCase {
}
FunctionEval.registerFunction("FISHER", new Function() {
+ @Override
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {
return ErrorEval.NA;
}
@@ -69,6 +70,7 @@ public class TestFunctionRegistry extends TestCase {
}
AnalysisToolPak.registerFunction("CUBEMEMBERPROPERTY", new FreeRefFunction() {
+ @Override
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
return ErrorEval.NUM_ERROR;
}
@@ -80,6 +82,7 @@ public class TestFunctionRegistry extends TestCase {
public void testExceptions() {
Function func = new Function() {
+ @Override
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {
return ErrorEval.NA;
}
@@ -106,6 +109,7 @@ public class TestFunctionRegistry extends TestCase {
}
FreeRefFunction atpFunc = new FreeRefFunction() {
+ @Override
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
return ErrorEval.NUM_ERROR;
}
diff --git a/src/testcases/org/apache/poi/ss/formula/atp/TestNetworkdaysFunction.java b/src/testcases/org/apache/poi/ss/formula/atp/TestNetworkdaysFunction.java
index 9df80a9d7a..f92204d872 100644
--- a/src/testcases/org/apache/poi/ss/formula/atp/TestNetworkdaysFunction.java
+++ b/src/testcases/org/apache/poi/ss/formula/atp/TestNetworkdaysFunction.java
@@ -107,14 +107,17 @@ public class TestNetworkdaysFunction extends TestCase {
return getRelativeValue(-1, relativeRowIndex, relativeColumnIndex);
}
+ @Override
public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
return null;
}
+ @Override
public TwoDEval getColumn(int columnIndex) {
return null;
}
+ @Override
public TwoDEval getRow(int rowIndex) {
return null;
}
diff --git a/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayFunction.java b/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayFunction.java
index 02af969a2b..bbd6e56aad 100644
--- a/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayFunction.java
+++ b/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayFunction.java
@@ -196,14 +196,17 @@ public class TestWorkdayFunction {
return getRelativeValue(-1, relativeRowIndex, relativeColumnIndex);
}
+ @Override
public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
return null;
}
+ @Override
public TwoDEval getColumn(int columnIndex) {
return null;
}
+ @Override
public TwoDEval getRow(int rowIndex) {
return null;
}
diff --git a/src/testcases/org/apache/poi/ss/formula/eval/TestExternalFunction.java b/src/testcases/org/apache/poi/ss/formula/eval/TestExternalFunction.java
index 30500b19a9..7a153e597d 100644
--- a/src/testcases/org/apache/poi/ss/formula/eval/TestExternalFunction.java
+++ b/src/testcases/org/apache/poi/ss/formula/eval/TestExternalFunction.java
@@ -42,7 +42,8 @@ public final class TestExternalFunction extends TestCase {
//
}
- public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
+ @Override
+ public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
if (args.length != 1 || !(args[0] instanceof StringEval)) {
return ErrorEval.VALUE_INVALID;
}
@@ -56,7 +57,8 @@ public final class TestExternalFunction extends TestCase {
//
}
- public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
+ @Override
+ public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
if (args.length != 1 || !(args[0] instanceof StringEval)) {
return ErrorEval.VALUE_INVALID;
}
diff --git a/src/testcases/org/apache/poi/ss/formula/eval/TestMultiSheetEval.java b/src/testcases/org/apache/poi/ss/formula/eval/TestMultiSheetEval.java
index b1b66c00da..9db99b1e56 100644
--- a/src/testcases/org/apache/poi/ss/formula/eval/TestMultiSheetEval.java
+++ b/src/testcases/org/apache/poi/ss/formula/eval/TestMultiSheetEval.java
@@ -136,7 +136,8 @@ public final class TestMultiSheetEval extends TestCase {
}
- protected void setUp() {
+ @Override
+ protected void setUp() {
if (workbook == null) {
workbook = HSSFTestDataSamples.openSampleWorkbook(SS.FILENAME);
sheet = workbook.getSheet( SS.TEST_SHEET_NAME );
diff --git a/src/testcases/org/apache/poi/ss/formula/eval/TestRangeEval.java b/src/testcases/org/apache/poi/ss/formula/eval/TestRangeEval.java
index 7493ffd087..6a64436604 100644
--- a/src/testcases/org/apache/poi/ss/formula/eval/TestRangeEval.java
+++ b/src/testcases/org/apache/poi/ss/formula/eval/TestRangeEval.java
@@ -75,10 +75,12 @@ public final class TestRangeEval extends TestCase {
public MockRefEval(int rowIndex, int columnIndex) {
super(-1, -1, rowIndex, columnIndex);
}
- public ValueEval getInnerValueEval(int sheetIndex) {
+ @Override
+ public ValueEval getInnerValueEval(int sheetIndex) {
throw new RuntimeException("not expected to be called during this test");
}
- public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx,
+ @Override
+ public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx,
int relLastColIx) {
AreaI area = new OffsetArea(getRow(), getColumn(),
relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);
@@ -94,27 +96,32 @@ public final class TestRangeEval extends TestCase {
private MockAreaEval(int firstRow, int firstColumn, int lastRow, int lastColumn) {
super(firstRow, firstColumn, lastRow, lastColumn);
}
- public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {
+ @Override
+ public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {
throw new RuntimeException("not expected to be called during this test");
}
+ @Override
public ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex) {
throw new RuntimeException("not expected to be called during this test");
}
- public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx,
+ @Override
+ public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx,
int relLastColIx) {
AreaI area = new OffsetArea(getFirstRow(), getFirstColumn(),
relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);
return new MockAreaEval(area);
}
- public TwoDEval getRow(int rowIndex) {
+ @Override
+ public TwoDEval getRow(int rowIndex) {
if (rowIndex >= getHeight()) {
throw new IllegalArgumentException("Invalid rowIndex " + rowIndex
+ ". Allowable range is (0.." + getHeight() + ").");
}
return new MockAreaEval(rowIndex, getFirstColumn(), rowIndex, getLastColumn());
}
- public TwoDEval getColumn(int columnIndex) {
+ @Override
+ public TwoDEval getColumn(int columnIndex) {
if (columnIndex >= getWidth()) {
throw new IllegalArgumentException("Invalid columnIndex " + columnIndex
+ ". Allowable range is (0.." + getWidth() + ").");
diff --git a/src/testcases/org/apache/poi/ss/formula/eval/forked/TestForkedEvaluator.java b/src/testcases/org/apache/poi/ss/formula/eval/forked/TestForkedEvaluator.java
index ea1f97b729..e00dbafd32 100644
--- a/src/testcases/org/apache/poi/ss/formula/eval/forked/TestForkedEvaluator.java
+++ b/src/testcases/org/apache/poi/ss/formula/eval/forked/TestForkedEvaluator.java
@@ -69,7 +69,8 @@ public class TestForkedEvaluator {
// The stability classifier is useful to reduce memory consumption of caching logic
IStabilityClassifier stabilityClassifier = new IStabilityClassifier() {
- public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
+ @Override
+ public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
return sheetIndex == 1;
}
};
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/AbstractNumericTestCase.java b/src/testcases/org/apache/poi/ss/formula/functions/AbstractNumericTestCase.java
index c5453ea39a..cc8b5c52d3 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/AbstractNumericTestCase.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/AbstractNumericTestCase.java
@@ -31,9 +31,11 @@ public abstract class AbstractNumericTestCase extends TestCase {
public static final double POS_ZERO = 1E-4;
public static final double DIFF_TOLERANCE_FACTOR = 1E-8;
+ @Override
public void setUp() {
}
+ @Override
public void tearDown() {
}
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/EvalFactory.java b/src/testcases/org/apache/poi/ss/formula/functions/EvalFactory.java
index 4d755ebabd..dfe8e53e9a 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/EvalFactory.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/EvalFactory.java
@@ -88,9 +88,11 @@ public final class EvalFactory {
super(firstRow, firstColumn, lastRow, lastColumn);
_values = values;
}
- public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {
+ @Override
+ public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {
return getRelativeValue(-1, relativeRowIndex, relativeColumnIndex);
}
+ @Override
public ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex) {
if (relativeRowIndex < 0 || relativeRowIndex >=getHeight()) {
throw new IllegalArgumentException("row index out of range");
@@ -102,7 +104,8 @@ public final class EvalFactory {
int oneDimensionalIndex = relativeRowIndex * width + relativeColumnIndex;
return _values[oneDimensionalIndex];
}
- public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
+ @Override
+ public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
if (relFirstRowIx < 0 || relFirstColIx < 0
|| relLastRowIx >= getHeight() || relLastColIx >= getWidth()) {
throw new RuntimeException("Operation not implemented on this mock object");
@@ -133,7 +136,8 @@ public final class EvalFactory {
}
return result;
}
- public TwoDEval getRow(int rowIndex) {
+ @Override
+ public TwoDEval getRow(int rowIndex) {
if (rowIndex >= getHeight()) {
throw new IllegalArgumentException("Invalid rowIndex " + rowIndex
+ ". Allowable range is (0.." + getHeight() + ").");
@@ -144,7 +148,8 @@ public final class EvalFactory {
}
return new MockAreaEval(rowIndex, getFirstColumn(), rowIndex, getLastColumn(), values);
}
- public TwoDEval getColumn(int columnIndex) {
+ @Override
+ public TwoDEval getColumn(int columnIndex) {
if (columnIndex >= getWidth()) {
throw new IllegalArgumentException("Invalid columnIndex " + columnIndex
+ ". Allowable range is (0.." + getWidth() + ").");
@@ -167,10 +172,12 @@ public final class EvalFactory {
super(-1, -1, ptg.getRow(), ptg.getColumn());
_value = value;
}
- public ValueEval getInnerValueEval(int sheetIndex) {
+ @Override
+ public ValueEval getInnerValueEval(int sheetIndex) {
return _value;
}
- public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
+ @Override
+ public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {
throw new RuntimeException("Operation not implemented on this mock object");
}
}
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestBin2Dec.java b/src/testcases/org/apache/poi/ss/formula/functions/TestBin2Dec.java
index 0f3fff9a98..134975e209 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/TestBin2Dec.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/TestBin2Dec.java
@@ -92,6 +92,7 @@ public final class TestBin2Dec extends TestCase {
HSSFEvaluationWorkbook workbook = HSSFEvaluationWorkbook.create(wb);
WorkbookEvaluator workbookEvaluator = new WorkbookEvaluator(workbook, new IStabilityClassifier() {
+ @Override
public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
return true;
}
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestCalendarFieldFunction.java b/src/testcases/org/apache/poi/ss/formula/functions/TestCalendarFieldFunction.java
index 337ad8518f..c7c33ad9b2 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/TestCalendarFieldFunction.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/TestCalendarFieldFunction.java
@@ -35,6 +35,7 @@ public final class TestCalendarFieldFunction extends TestCase {
private HSSFCell cell11;
private HSSFFormulaEvaluator evaluator;
+ @Override
public void setUp() {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("new sheet");
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestDate.java b/src/testcases/org/apache/poi/ss/formula/functions/TestDate.java
index 0051f72e7c..45241f6afc 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/TestDate.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/TestDate.java
@@ -35,6 +35,7 @@ public final class TestDate extends TestCase {
private HSSFCell cell11;
private HSSFFormulaEvaluator evaluator;
+ @Override
public void setUp() {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("new sheet");
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Bin.java b/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Bin.java
index 0000b64b28..c12dbe9e02 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Bin.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Bin.java
@@ -112,6 +112,7 @@ public final class TestDec2Bin extends TestCase {
HSSFEvaluationWorkbook workbook = HSSFEvaluationWorkbook.create(wb);
WorkbookEvaluator workbookEvaluator = new WorkbookEvaluator(workbook, new IStabilityClassifier() {
+ @Override
public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
return true;
}
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Hex.java b/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Hex.java
index e9b6c44e6a..6084d652d8 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Hex.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/TestDec2Hex.java
@@ -137,6 +137,7 @@ public final class TestDec2Hex extends TestCase {
HSSFEvaluationWorkbook workbook = HSSFEvaluationWorkbook.create(wb);
WorkbookEvaluator workbookEvaluator = new WorkbookEvaluator(workbook, new IStabilityClassifier() {
+ @Override
public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
return true;
}
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestHex2Dec.java b/src/testcases/org/apache/poi/ss/formula/functions/TestHex2Dec.java
index a3b971a357..b1bcb2f857 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/TestHex2Dec.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/TestHex2Dec.java
@@ -90,6 +90,7 @@ public final class TestHex2Dec extends TestCase {
HSSFEvaluationWorkbook workbook = HSSFEvaluationWorkbook.create(wb);
WorkbookEvaluator workbookEvaluator = new WorkbookEvaluator(workbook, new IStabilityClassifier() {
+ @Override
public boolean isCellFinal(int sheetIndex, int rowIndex, int columnIndex) {
return true;
}
diff --git a/src/testcases/org/apache/poi/ss/formula/udf/BaseTestUDFFinder.java b/src/testcases/org/apache/poi/ss/formula/udf/BaseTestUDFFinder.java
index 32d7202d94..ab3aa987c7 100644
--- a/src/testcases/org/apache/poi/ss/formula/udf/BaseTestUDFFinder.java
+++ b/src/testcases/org/apache/poi/ss/formula/udf/BaseTestUDFFinder.java
@@ -26,6 +26,7 @@ public class BaseTestUDFFinder {
protected UDFFinder _instance;
protected static final FreeRefFunction NotImplemented = new FreeRefFunction() {
+ @Override
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
throw new RuntimeException("not implemented");
}