소스 검색

导入带图像

suntianwu 3 년 전
부모
커밋
8e8300e3f4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/iden/common/exceltool/AbstractExcelParser.java

+ 2 - 2
src/main/java/com/iden/common/exceltool/AbstractExcelParser.java

@@ -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("")) {