Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit 0915504

Browse files
authored
Merge pull request #3170 from alibaba/bugfix
修改文档异常
2 parents 93f8d9e + 9458f92 commit 0915504

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

easyexcel-core/src/main/java/com/alibaba/excel/util/ClassUtils.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.alibaba.excel.util;
22

3-
import java.io.FileWriter;
43
import java.lang.reflect.Field;
54
import java.lang.reflect.Modifier;
65
import java.util.ArrayList;
@@ -14,7 +13,6 @@
1413
import java.util.Optional;
1514
import java.util.Set;
1615
import java.util.TreeMap;
17-
import java.util.TreeSet;
1816
import java.util.concurrent.ConcurrentHashMap;
1917

2018
import com.alibaba.excel.annotation.ExcelIgnore;
@@ -35,7 +33,6 @@
3533
import com.alibaba.excel.metadata.property.FontProperty;
3634
import com.alibaba.excel.metadata.property.NumberFormatProperty;
3735
import com.alibaba.excel.metadata.property.StyleProperty;
38-
import com.alibaba.excel.write.metadata.fill.FillWrapper;
3936
import com.alibaba.excel.write.metadata.holder.WriteHolder;
4037

4138
import lombok.AllArgsConstructor;
@@ -274,10 +271,8 @@ private static Map<String, ExcelContentProperty> doDeclaredFieldContentMap(Class
274271
/**
275272
* Parsing field in the class
276273
*
277-
* @param clazz Need to parse the class
278-
* @param needIgnore If you want to ignore fields need to ignore
279-
* @param holder holder
280-
* @param cacheLocation cache lcation
274+
* @param clazz Need to parse the class
275+
* @param configurationHolder configuration
281276
*/
282277
public static FieldCache declaredFields(Class<?> clazz, ConfigurationHolder configurationHolder) {
283278
switch (configurationHolder.globalConfiguration().getFiledCacheLocation()) {
@@ -431,7 +426,8 @@ private static void resortField(WriteHolder writeHolder, FieldCache fieldCache)
431426
}
432427
}
433428

434-
private static Map<Integer, FieldWrapper> buildSortedAllFieldMap(Map<Integer, List<FieldWrapper>> orderFieldMap, Map<Integer, FieldWrapper> indexFieldMap) {
429+
private static Map<Integer, FieldWrapper> buildSortedAllFieldMap(Map<Integer, List<FieldWrapper>> orderFieldMap,
430+
Map<Integer, FieldWrapper> indexFieldMap) {
435431

436432
Map<Integer, FieldWrapper> sortedAllFieldMap = new HashMap<>(
437433
(orderFieldMap.size() + indexFieldMap.size()) * 4 / 3 + 1);

0 commit comments

Comments
 (0)