]> source.dussan.org Git - poi.git/commitdiff
pointless instanceof
authorPJ Fanning <fanningpj@apache.org>
Sun, 3 Oct 2021 09:44:30 +0000 (09:44 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 3 Oct 2021 09:44:30 +0000 (09:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893848 13f79535-47bb-0310-9956-ffa450edef68

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

index 555bc513d84fb957a2fe614ebf1675883b183f67..c0c8821e4f978c0bdcbc968f2c2ecbd4fe40c491 100644 (file)
@@ -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);
             }