|
@@ -30,7 +30,7 @@ public class AbstractExcelParser {
|
|
|
//定义数据总行数减去的行数
|
|
|
protected int reduceRowNum = 0;
|
|
|
|
|
|
- protected Map<String, FormatType> formatColMap = new Hashtable<String, FormatType>();
|
|
|
+ protected Map<String, FormatType> formatColMap = new Hashtable<>();
|
|
|
|
|
|
public static enum FormatType {
|
|
|
ReplaceLineToDot
|
|
@@ -70,7 +70,7 @@ public class AbstractExcelParser {
|
|
|
return null;
|
|
|
}
|
|
|
// 生成列
|
|
|
- List<String> headers = new ArrayList<String>();
|
|
|
+ List<String> headers = new ArrayList<>();
|
|
|
for (int hi = headerRow.getFirstCellNum(); hi < cellCount; hi++) {
|
|
|
String header = headerRow.getCell(hi).toString();
|
|
|
if (!header.equals("")) {
|