diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-10-03 09:44:30 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-10-03 09:44:30 +0000 |
commit | bf372571939d19b441788bb2ef265f2ce30bae4f (patch) | |
tree | 28d6cb8fd8aff7f50ff3be27895f887f8fd108b2 /poi-examples/src/main | |
parent | acadd84b536b101e4c9df2d0ae1a246a271c414c (diff) | |
download | poi-bf372571939d19b441788bb2ef265f2ce30bae4f.tar.gz poi-bf372571939d19b441788bb2ef265f2ce30bae4f.zip |
pointless instanceof
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-examples/src/main')
-rw-r--r-- | poi-examples/src/main/java/org/apache/poi/examples/xssf/usermodel/WorkingWithPictures.java | 5 |
1 files changed, 1 insertions, 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); } |