Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
liaochong committed Dec 29, 2023
1 parent 201c503 commit e7eb47a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public AbstractExcelBuilder freezePanes(FreezePane... freezePanes) {

@Override
public ExcelBuilder nameManager(Map<String, List<?>> nameMapping) {
htmlToExcelFactory.nameMapping(nameMapping);
htmlToExcelFactory.nameManager(nameMapping);
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public ExcelFactory sheetStrategy(SheetStrategy sheetStrategy) {
}

@Override
public ExcelFactory nameMapping(Map<String, List<?>> nameMapping) {
public ExcelFactory nameManager(Map<String, List<?>> nameMapping) {
this.nameMapping = nameMapping;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public DefaultStreamExcelBuilder<T> start() {
context.styleParser = styleParser;
htmlToExcelStreamFactory = new HtmlToExcelStreamFactory(context);
htmlToExcelStreamFactory.widthStrategy(configuration.widthStrategy);
htmlToExcelStreamFactory.nameMapping(configuration.nameMapping);
htmlToExcelStreamFactory.nameManager(configuration.nameMapping);
if (workbook == null) {
htmlToExcelStreamFactory.workbookType(configuration.workbookType);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public interface ExcelFactory {
* @param nameMapping 名称映射
* @return ExcelFactory
*/
default ExcelFactory nameMapping(Map<String, List<?>> nameMapping) {
default ExcelFactory nameManager(Map<String, List<?>> nameMapping) {
return this;
}

Expand Down

0 comments on commit e7eb47a

Please sign in to comment.