Jiaju Zhuang 5 years ago
parent
commit
4167e9793b
  1. 9
      src/main/java/com/alibaba/excel/write/metadata/holder/AbstractWriteHolder.java

9
src/main/java/com/alibaba/excel/write/metadata/holder/AbstractWriteHolder.java

@ -311,11 +311,14 @@ public abstract class AbstractWriteHolder extends AbstractHolder implements Writ
for (WriteHandler writeHandler : cleanUpHandlerList) { for (WriteHandler writeHandler : cleanUpHandlerList) {
if (writeHandler instanceof CellWriteHandler) { if (writeHandler instanceof CellWriteHandler) {
result.get(CellWriteHandler.class).add(writeHandler); result.get(CellWriteHandler.class).add(writeHandler);
} else if (writeHandler instanceof RowWriteHandler) { }
if (writeHandler instanceof RowWriteHandler) {
result.get(RowWriteHandler.class).add(writeHandler); result.get(RowWriteHandler.class).add(writeHandler);
} else if (writeHandler instanceof SheetWriteHandler) { }
if (writeHandler instanceof SheetWriteHandler) {
result.get(SheetWriteHandler.class).add(writeHandler); result.get(SheetWriteHandler.class).add(writeHandler);
} else if (writeHandler instanceof WorkbookWriteHandler) { }
if (writeHandler instanceof WorkbookWriteHandler) {
result.get(WorkbookWriteHandler.class).add(writeHandler); result.get(WorkbookWriteHandler.class).add(writeHandler);
} }
result.get(WriteHandler.class).add(writeHandler); result.get(WriteHandler.class).add(writeHandler);

Loading…
Cancel
Save