You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2021/10/03 09:44:30 UTC

svn commit: r1893848 - /poi/trunk/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java

Author: fanningpj
Date: Sun Oct  3 09:44:30 2021
New Revision: 1893848

URL: http://svn.apache.org/viewvc?rev=1893848&view=rev
Log:
pointless instanceof

Modified:
    poi/trunk/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java

Modified: poi/trunk/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java?rev=1893848&r1=1893847&r2=1893848&view=diff
==============================================================================
--- poi/trunk/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java (original)
+++ poi/trunk/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java Sun Oct  3 09:44:30 2021
@@ -67,10 +67,7 @@ public final class WorkingWithPictures {
             pict.resize(2);
 
             //save workbook
-            String file = "picture.xls";
-            if (wb instanceof XSSFWorkbook) {
-                file += "x"; // NOSONAR
-            }
+            String file = "picture.xlsx";
             try (OutputStream fileOut = new FileOutputStream(file)) {
                 wb.write(fileOut);
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org