mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
623d5ef5c9
commit
df96ef1a29
@ -117,10 +117,7 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public T setSheet(String sheetName) {
|
||||
this.sheet = this.workbook.getSheet(sheetName);
|
||||
if (null == this.sheet) {
|
||||
this.sheet = this.workbook.createSheet(sheetName);
|
||||
}
|
||||
WorkbookUtil.getOrCreateSheet(this.workbook, sheetName);
|
||||
return (T) this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user