From bf372571939d19b441788bb2ef265f2ce30bae4f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 3 Oct 2021 09:44:30 +0000 Subject: [PATCH] pointless instanceof git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893848 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/examples/xssf/usermodel/WorkingWithPictures.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java index 555bc513d8..c0c8821e4f 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java @@ -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); } -- 2.39.5