-
Notifications
You must be signed in to change notification settings - Fork 489
feature: add an afterSheetDispose method to the SheetWriteHandler #413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
b32a9f2
e6344af
1db335f
b373dba
bebc600
ffa3589
c5a34e3
a2ac41a
a996782
25e593d
c6979d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,7 +22,9 @@ | |||||
| import cn.idev.excel.util.ListUtils; | ||||||
| import cn.idev.excel.write.handler.CellWriteHandler; | ||||||
| import cn.idev.excel.write.handler.EscapeHexCellWriteHandler; | ||||||
| import cn.idev.excel.write.handler.SheetWriteHandler; | ||||||
| import cn.idev.excel.write.handler.context.CellWriteHandlerContext; | ||||||
| import cn.idev.excel.write.handler.context.SheetWriteHandlerContext; | ||||||
| import cn.idev.excel.write.merge.LoopMergeStrategy; | ||||||
| import cn.idev.excel.write.metadata.WriteSheet; | ||||||
| import cn.idev.excel.write.metadata.WriteTable; | ||||||
|
|
@@ -38,11 +40,13 @@ | |||||
| import java.util.HashSet; | ||||||
| import java.util.List; | ||||||
| import java.util.Set; | ||||||
| import org.apache.poi.ss.usermodel.*; | ||||||
|
||||||
| import org.apache.poi.ss.usermodel.*; |
Copilot
AI
Aug 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import is redundant since Cell is already imported via the wildcard import on line 43. Remove this duplicate import.
| import org.apache.poi.ss.usermodel.Cell; |
Copilot
AI
Aug 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import is redundant since CellStyle is already imported via the wildcard import on line 43. Remove this duplicate import.
| import org.apache.poi.ss.usermodel.CellStyle; |
Copilot
AI
Aug 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import is redundant since FillPatternType is already imported via the wildcard import on line 43. Remove this duplicate import.
| import org.apache.poi.ss.usermodel.FillPatternType; |
Copilot
AI
Aug 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import is redundant since IndexedColors is already imported via the wildcard import on line 43. Remove this duplicate import.
| import org.apache.poi.ss.usermodel.IndexedColors; |
Copilot
AI
Aug 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import is redundant since Workbook is already imported via the wildcard import on line 43. Remove this duplicate import.
| import org.apache.poi.ss.usermodel.Workbook; |
Copilot
AI
Aug 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The magic numbers (1, 10, 2, 2) should be replaced with named constants or variables to improve code readability and maintainability.
| sheet.addMergedRegionUnsafe(new CellRangeAddress(1, 10, 2, 2)); | |
| sheet.addMergedRegionUnsafe(new CellRangeAddress(MERGE_FIRST_ROW, MERGE_LAST_ROW, MERGE_FIRST_COL, MERGE_LAST_COL)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The magic numbers (1, 2, 0, 1) should be replaced with named constants or variables to improve code readability and maintainability.