]> source.dussan.org Git - poi.git/commitdiff
Add comment
authorDominik Stadler <centic@apache.org>
Tue, 23 Dec 2014 09:26:22 +0000 (09:26 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 23 Dec 2014 09:26:22 +0000 (09:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1647512 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java

index b17a1a5aa54e670e6e174ac4e3f38c3573011e57..dae4ff36ed59c8deb7d601ce78103c6159571fcc 100644 (file)
@@ -105,6 +105,7 @@ public class WorkbookFactory {
             NPOIFSFileSystem fs = new NPOIFSFileSystem(file);
             return new HSSFWorkbook(fs.getRoot(), true);
         } catch(OfficeXmlFileException e) {
+            // opening as .xls failed => try opening as .xlsx
             OPCPackage pkg = OPCPackage.open(file);
             return new XSSFWorkbook(pkg);
         }