From 8ce3a9521cdc1fed5fae38f4741e47aea6dd6781 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Fri, 4 Dec 2015 10:46:58 +0000 Subject: [PATCH] whitespace git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717927 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java b/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java index 3e307f02d7..033fcc1814 100644 --- a/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java +++ b/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java @@ -45,9 +45,9 @@ public final class XSSFDump { System.out.println("Dumping " + args[i]); ZipFile zip = ZipHelper.openZipFile(args[i]); try { - dump(zip); + dump(zip); } finally { - zip.close(); + zip.close(); } } } @@ -79,11 +79,11 @@ public final class XSSFDump { System.out.println("Dumping to directory " + root); Enumeration en = zip.entries(); - while(en.hasMoreElements()){ + while (en.hasMoreElements()) { ZipEntry entry = en.nextElement(); String name = entry.getName(); int idx = name.lastIndexOf('/'); - if(idx != -1){ + if (idx != -1) { File bs = new File(root, name.substring(0, idx)); recursivelyCreateDirIfMissing(bs); } @@ -91,7 +91,7 @@ public final class XSSFDump { File f = new File(root, entry.getName()); OutputStream out = new FileOutputStream(f); try { - if(entry.getName().endsWith(".xml") || entry.getName().endsWith(".vml") || entry.getName().endsWith(".rels")){ + if (entry.getName().endsWith(".xml") || entry.getName().endsWith(".vml") || entry.getName().endsWith(".rels")) { try { XmlObject xml = XmlObject.Factory.parse(zip.getInputStream(entry), DEFAULT_XML_OPTIONS); XmlOptions options = new XmlOptions(); @@ -105,7 +105,7 @@ public final class XSSFDump { IOUtils.copy(zip.getInputStream(entry), out); } } finally { - out.close(); + out.close(); } } } -- 2.39.5