From: Nick Burch Date: Fri, 26 Feb 2016 23:32:54 +0000 (+0000) Subject: Fix inconsistent indents X-Git-Tag: REL_3_14_FINAL~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=170fab24612e02a8f43d960679fa9c607e7c75f6;p=poi.git Fix inconsistent indents git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1732580 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java b/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java index 59a52b225c..f2e42f1402 100644 --- a/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java +++ b/src/testcases/org/apache/poi/hssf/dev/TestBiffViewer.java @@ -26,47 +26,47 @@ import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; import org.apache.poi.util.LocaleUtil; public class TestBiffViewer extends BaseXLSIteratingTest { - static { - // these are likely ok to fail - EXCLUDED.add("XRefCalc.xls"); // "Buffer overrun" - EXCLUDED.add("50833.xls"); // "Name is too long" when setting username - EXCLUDED.add("OddStyleRecord.xls"); - EXCLUDED.add("NoGutsRecords.xls"); - EXCLUDED.add("51832.xls"); // password - EXCLUDED.add("43493.xls"); // HSSFWorkbook cannot open it as well - EXCLUDED.add("password.xls"); - EXCLUDED.add("46904.xls"); + static { + // these are likely ok to fail + EXCLUDED.add("XRefCalc.xls"); // "Buffer overrun" + EXCLUDED.add("50833.xls"); // "Name is too long" when setting username + EXCLUDED.add("OddStyleRecord.xls"); + EXCLUDED.add("NoGutsRecords.xls"); + EXCLUDED.add("51832.xls"); // password + EXCLUDED.add("43493.xls"); // HSSFWorkbook cannot open it as well + EXCLUDED.add("password.xls"); + EXCLUDED.add("46904.xls"); EXCLUDED.add("59074.xls"); // Biff 5 / Excel 95 EXCLUDED.add("35897-type4.xls"); // unsupported crypto api header - EXCLUDED.add("xor-encryption-abc.xls"); // unsupported XOR-encryption + EXCLUDED.add("xor-encryption-abc.xls"); // unsupported XOR-encryption EXCLUDED.add("testEXCEL_2.xls"); // Biff 2 / Excel 2, pre-OLE2 EXCLUDED.add("testEXCEL_3.xls"); // Biff 3 / Excel 3, pre-OLE2 EXCLUDED.add("testEXCEL_4.xls"); // Biff 4 / Excel 4, pre-OLE2 EXCLUDED.add("testEXCEL_5.xls"); // Biff 5 / Excel 5 EXCLUDED.add("testEXCEL_95.xls"); // Biff 5 / Excel 95 - } + } - @Override - void runOneFile(File fileIn) throws IOException { - NPOIFSFileSystem fs = new NPOIFSFileSystem(fileIn, true); - try { - InputStream is = BiffViewer.getPOIFSInputStream(fs); - try { - // use a NullOutputStream to not write the bytes anywhere for best runtime - PrintWriter dummy = new PrintWriter(new OutputStreamWriter(NULL_OUTPUT_STREAM, LocaleUtil.CHARSET_1252)); - BiffViewer.runBiffViewer(dummy, is, true, true, true, false); - } finally { - is.close(); - } - } finally { - fs.close(); - } - } + @Override + void runOneFile(File fileIn) throws IOException { + NPOIFSFileSystem fs = new NPOIFSFileSystem(fileIn, true); + try { + InputStream is = BiffViewer.getPOIFSInputStream(fs); + try { + // use a NullOutputStream to not write the bytes anywhere for best runtime + PrintWriter dummy = new PrintWriter(new OutputStreamWriter(NULL_OUTPUT_STREAM, LocaleUtil.CHARSET_1252)); + BiffViewer.runBiffViewer(dummy, is, true, true, true, false); + } finally { + is.close(); + } + } finally { + fs.close(); + } + } -// @Test -// @Ignore("only used for manual tests") -// public void testOneFile() throws Exception { -// POIDataSamples samples = POIDataSamples.getSpreadSheetInstance(); -// runOneFile(samples.getFile("43493.xls")); -// } +// @Test +// @Ignore("only used for manual tests") +// public void testOneFile() throws Exception { +// POIDataSamples samples = POIDataSamples.getSpreadSheetInstance(); +// runOneFile(samples.getFile("43493.xls")); +// } }