diff --git a/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java b/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java index 8c700b562..521b9ad67 100644 --- a/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java +++ b/src/testcases/org/apache/poi/hssf/dev/BaseXLSIteratingTest.java @@ -58,7 +58,8 @@ public abstract class BaseXLSIteratingTest { List failed = new ArrayList(); String[] files = new File(dir).list(new FilenameFilter() { - public boolean accept(File arg0, String arg1) { + @Override + public boolean accept(File arg0, String arg1) { return arg1.toLowerCase().endsWith(".xls"); } }); diff --git a/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java b/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java index 09a311e86..e14160895 100644 --- a/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java +++ b/src/testcases/org/apache/poi/hssf/dev/TestBiffDrawingToXml.java @@ -33,7 +33,7 @@ public class TestBiffDrawingToXml extends BaseXLSIteratingTest { // EXCLUDED.add("XRefCalc.xls"); // EXCLUDED.add("43493.xls"); // EXCLUDED.add("51832.xls"); - }; + } @Override @Ignore("Not yet done, nearly all files fail with various errors, remove this method when done to use the one from the abstract base class!...") diff --git a/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java b/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java index 711215d18..9083fbdf7 100644 --- a/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java +++ b/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java @@ -37,7 +37,7 @@ public class TestBiffViewer extends BaseXLSIteratingTest { SILENT_EXCLUDED.add("password.xls"); SILENT_EXCLUDED.add("46904.xls"); SILENT_EXCLUDED.add("xor-encryption-abc.xls"); // unsupported XOR-encryption - }; + } @Override void runOneFile(String dir, String file, List failed) throws IOException { diff --git a/src/testcases/org/apache/poi/hssf/dev/TestFormulaViewer.java b/src/testcases/org/apache/poi/hssf/dev/TestFormulaViewer.java index 1ceb55c55..8683b78dc 100644 --- a/src/testcases/org/apache/poi/hssf/dev/TestFormulaViewer.java +++ b/src/testcases/org/apache/poi/hssf/dev/TestFormulaViewer.java @@ -32,7 +32,7 @@ public class TestFormulaViewer extends BaseXLSIteratingTest { // EXCLUDED.add("BOOK_in_capitals.xls"); // EXCLUDED.add("46904.xls"); // EXCLUDED.add("OddStyleRecord.xls"); - }; + } @Override @Ignore("Not yet done, nearly all files fail with various errors, remove this method when done to use the one from the abstract base class!...") diff --git a/src/testcases/org/apache/poi/hssf/dev/TestReSave.java b/src/testcases/org/apache/poi/hssf/dev/TestReSave.java index 36a6de4eb..cc124f449 100644 --- a/src/testcases/org/apache/poi/hssf/dev/TestReSave.java +++ b/src/testcases/org/apache/poi/hssf/dev/TestReSave.java @@ -37,7 +37,7 @@ public class TestReSave extends BaseXLSIteratingTest { SILENT_EXCLUDED.add("43493.xls"); // HSSFWorkbook cannot open it as well SILENT_EXCLUDED.add("46904.xls"); SILENT_EXCLUDED.add("51832.xls"); // password - }; + } @Override void runOneFile(String dir, String file, List failed) throws Exception { diff --git a/src/testcases/org/apache/poi/hssf/dev/TestRecordLister.java b/src/testcases/org/apache/poi/hssf/dev/TestRecordLister.java index 58deca919..c74816fd1 100644 --- a/src/testcases/org/apache/poi/hssf/dev/TestRecordLister.java +++ b/src/testcases/org/apache/poi/hssf/dev/TestRecordLister.java @@ -29,7 +29,7 @@ public class TestRecordLister extends BaseXLSIteratingTest { // these are likely ok to fail SILENT_EXCLUDED.add("46904.xls"); - }; + } @Override void runOneFile(String dir, String file, List failed) throws IOException {