pointless instanceof

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893848 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-10-03 09:44:30 +00:00
parent acadd84b53
commit bf37257193
1 changed files with 1 additions and 4 deletions

View 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);
}