diff options
author | Javen O'Neal <onealj@apache.org> | 2016-10-20 02:21:14 +0000 |
---|---|---|
committer | Javen O'Neal <onealj@apache.org> | 2016-10-20 02:21:14 +0000 |
commit | db63b9cf69c66b15638f7400d7c88c6c02deea92 (patch) | |
tree | d5bdab09166f29ad765c1b74ab6dcf33ed2eea48 /src/testcases/org/apache/poi/ss | |
parent | 7520fcd4fb8f130cb86e11e3d9a11ab431f825e5 (diff) | |
download | poi-db63b9cf69c66b15638f7400d7c88c6c02deea92.tar.gz poi-db63b9cf69c66b15638f7400d7c88c6c02deea92.zip |
Eclipse automated refactor/cleanup: add final modifier to private fields to unit tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765739 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss')
3 files changed, 4 insertions, 4 deletions
diff --git a/src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java b/src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java index 1abc92b064..4641c4fdc3 100644 --- a/src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java +++ b/src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java @@ -91,8 +91,8 @@ public class TestEvaluationCache extends TestCase { private final List<String> _logList; private final HSSFWorkbook _book; - private Map<ICacheEntry,EvaluationCell> _formulaCellsByCacheEntry; - private Map<ICacheEntry,Loc> _plainCellLocsByCacheEntry; + private final Map<ICacheEntry,EvaluationCell> _formulaCellsByCacheEntry; + private final Map<ICacheEntry,Loc> _plainCellLocsByCacheEntry; public EvalListener(HSSFWorkbook wb) { _book = wb; diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java index a96a727ea2..6ce1e13d42 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetHiding.java @@ -35,7 +35,7 @@ public abstract class BaseTestSheetHiding { protected Workbook wbH; protected Workbook wbU; - private String _file1, _file2; + private final String _file1, _file2; /** * @param testDataProvider an object that provides test data in HSSF / specific way diff --git a/src/testcases/org/apache/poi/ss/util/cellwalk/TestCellWalk.java b/src/testcases/org/apache/poi/ss/util/cellwalk/TestCellWalk.java index 3664aec712..d3adcce0c0 100644 --- a/src/testcases/org/apache/poi/ss/util/cellwalk/TestCellWalk.java +++ b/src/testcases/org/apache/poi/ss/util/cellwalk/TestCellWalk.java @@ -35,7 +35,7 @@ public class TestCellWalk extends TestCase { {null, null, "str"} }; - private CountCellHandler countCellHandler = new CountCellHandler(); + private final CountCellHandler countCellHandler = new CountCellHandler(); public void testNotTraverseEmptyCells() { Workbook wb = new HSSFWorkbook(); |