Skip to content

Commit aa5fe56

Browse files
committed
修改项目名Easyexcel改名FastExcel同时兼容老的Easyexcel
1 parent 88089db commit aa5fe56

File tree

8 files changed

+21
-11
lines changed

8 files changed

+21
-11
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package cn.idev.excel;
22

33
/**
4-
* This is actually {@link EasyExcelFactory}, and short names look better.
4+
* This is actually {@link FastExcelFactory}, and short names look better.
55
*
66
* @author jipengfei
77
*/
8-
public class EasyExcel extends EasyExcelFactory {}
8+
public class EasyExcel extends FastExcelFactory {}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package cn.idev.excel;
2+
3+
/**
4+
* This is actually {@link FastExcelFactory}, and short names look better.
5+
*
6+
* @author jipengfei
7+
*/
8+
public class FastExcel extends FastExcelFactory {
9+
10+
}

fastexcel-core/src/main/java/cn/idev/excel/EasyExcelFactory.java renamed to fastexcel-core/src/main/java/cn/idev/excel/FastExcelFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @author jipengfei
1818
*/
19-
public class EasyExcelFactory {
19+
public class FastExcelFactory {
2020

2121
/**
2222
* Build excel the write

fastexcel-core/src/main/java/cn/idev/excel/read/builder/ExcelReaderSheetBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public ReadSheet build() {
6060
*/
6161
public void doRead() {
6262
if (excelReader == null) {
63-
throw new ExcelGenerateException("Must use 'EasyExcelFactory.read().sheet()' to call this method");
63+
throw new ExcelGenerateException("Must use 'FastExcelFactory.read().sheet()' to call this method");
6464
}
6565
excelReader.read(build());
6666
excelReader.finish();
@@ -73,7 +73,7 @@ public void doRead() {
7373
*/
7474
public <T> List<T> doReadSync() {
7575
if (excelReader == null) {
76-
throw new ExcelAnalysisException("Must use 'EasyExcelFactory.read().sheet()' to call this method");
76+
throw new ExcelAnalysisException("Must use 'FastExcelFactory.read().sheet()' to call this method");
7777
}
7878
SyncReadListener syncReadListener = new SyncReadListener();
7979
registerReadListener(syncReadListener);

fastexcel-core/src/main/java/cn/idev/excel/write/builder/ExcelWriterSheetBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public WriteSheet build() {
5757

5858
public void doWrite(Collection<?> data) {
5959
if (excelWriter == null) {
60-
throw new ExcelGenerateException("Must use 'EasyExcelFactory.write().sheet()' to call this method");
60+
throw new ExcelGenerateException("Must use 'FastExcelFactory.write().sheet()' to call this method");
6161
}
6262
excelWriter.write(data, build());
6363
excelWriter.finish();
@@ -69,7 +69,7 @@ public void doFill(Object data) {
6969

7070
public void doFill(Object data, FillConfig fillConfig) {
7171
if (excelWriter == null) {
72-
throw new ExcelGenerateException("Must use 'EasyExcelFactory.write().sheet()' to call this method");
72+
throw new ExcelGenerateException("Must use 'FastExcelFactory.write().sheet()' to call this method");
7373
}
7474
excelWriter.fill(data, fillConfig, build());
7575
excelWriter.finish();

fastexcel-core/src/main/java/cn/idev/excel/write/builder/ExcelWriterTableBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public WriteTable build() {
5050

5151
public void doWrite(Collection<?> data) {
5252
if (excelWriter == null) {
53-
throw new ExcelGenerateException("Must use 'EasyExcelFactory.write().sheet().table()' to call this method");
53+
throw new ExcelGenerateException("Must use 'FastExcelFactory.write().sheet().table()' to call this method");
5454
}
5555
excelWriter.write(data, writeSheet, build());
5656
excelWriter.finish();

fastexcel-test/src/test/java/cn/idev/excel/test/temp/Xls03Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import cn.idev.excel.EasyExcel;
66
import cn.idev.excel.util.BeanMapUtils;
7-
import ai.chat2db.excel.support.cglib.beans.BeanMap;
8-
import ai.chat2db.excel.support.cglib.core.DebuggingClassWriter;
7+
import cn.idev.excel.support.cglib.beans.BeanMap;
8+
import cn.idev.excel.support.cglib.core.DebuggingClassWriter;
99
import com.alibaba.fastjson2.JSON;
1010

1111
import org.junit.jupiter.api.Test;

fastexcel-test/src/test/java/cn/idev/excel/test/temp/write/TempWriteTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import cn.idev.excel.util.FileUtils;
1212
import cn.idev.excel.util.ListUtils;
1313
import cn.idev.excel.test.util.TestFileUtil;
14-
import ai.chat2db.excel.support.cglib.beans.BeanMap;
14+
import cn.idev.excel.support.cglib.beans.BeanMap;
1515

1616
import lombok.extern.slf4j.Slf4j;
1717
import org.apache.poi.ss.usermodel.ClientAnchor;

0 commit comments

Comments
 (0)