mirror of
https://github.com/apache/poi.git
synced 2025-03-06 08:59:07 +00:00
pointless instanceof
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893848 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
acadd84b53
commit
bf37257193
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user