|
1 | 1 | package com.alibaba.excel.util;
|
2 | 2 |
|
3 |
| -import java.io.FileWriter; |
4 | 3 | import java.lang.reflect.Field;
|
5 | 4 | import java.lang.reflect.Modifier;
|
6 | 5 | import java.util.ArrayList;
|
|
14 | 13 | import java.util.Optional;
|
15 | 14 | import java.util.Set;
|
16 | 15 | import java.util.TreeMap;
|
17 |
| -import java.util.TreeSet; |
18 | 16 | import java.util.concurrent.ConcurrentHashMap;
|
19 | 17 |
|
20 | 18 | import com.alibaba.excel.annotation.ExcelIgnore;
|
|
35 | 33 | import com.alibaba.excel.metadata.property.FontProperty;
|
36 | 34 | import com.alibaba.excel.metadata.property.NumberFormatProperty;
|
37 | 35 | import com.alibaba.excel.metadata.property.StyleProperty;
|
38 |
| -import com.alibaba.excel.write.metadata.fill.FillWrapper; |
39 | 36 | import com.alibaba.excel.write.metadata.holder.WriteHolder;
|
40 | 37 |
|
41 | 38 | import lombok.AllArgsConstructor;
|
@@ -274,10 +271,8 @@ private static Map<String, ExcelContentProperty> doDeclaredFieldContentMap(Class
|
274 | 271 | /**
|
275 | 272 | * Parsing field in the class
|
276 | 273 | *
|
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 |
281 | 276 | */
|
282 | 277 | public static FieldCache declaredFields(Class<?> clazz, ConfigurationHolder configurationHolder) {
|
283 | 278 | switch (configurationHolder.globalConfiguration().getFiledCacheLocation()) {
|
@@ -431,7 +426,8 @@ private static void resortField(WriteHolder writeHolder, FieldCache fieldCache)
|
431 | 426 | }
|
432 | 427 | }
|
433 | 428 |
|
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) { |
435 | 431 |
|
436 | 432 | Map<Integer, FieldWrapper> sortedAllFieldMap = new HashMap<>(
|
437 | 433 | (orderFieldMap.size() + indexFieldMap.size()) * 4 / 3 + 1);
|
|
0 commit comments