diff --git a/hutool-core/src/main/java/cn/hutool/core/io/FileUtil.java b/hutool-core/src/main/java/cn/hutool/core/io/FileUtil.java index 0de5c27e4..ec4c23d45 100644 --- a/hutool-core/src/main/java/cn/hutool/core/io/FileUtil.java +++ b/hutool-core/src/main/java/cn/hutool/core/io/FileUtil.java @@ -2325,7 +2325,7 @@ public class FileUtil { * @throws IORuntimeException IO异常 */ public static List readLines(URL url, String charset) throws IORuntimeException { - return readLines(url, charset, new ArrayList()); + return readLines(url, charset, new ArrayList<>()); } /** @@ -2337,7 +2337,7 @@ public class FileUtil { * @throws IORuntimeException IO异常 */ public static List readLines(URL url, Charset charset) throws IORuntimeException { - return readLines(url, charset, new ArrayList()); + return readLines(url, charset, new ArrayList<>()); } /** @@ -2361,7 +2361,7 @@ public class FileUtil { * @throws IORuntimeException IO异常 */ public static List readLines(String path, String charset) throws IORuntimeException { - return readLines(path, charset, new ArrayList()); + return readLines(path, charset, new ArrayList<>()); } /** @@ -2374,7 +2374,7 @@ public class FileUtil { * @since 3.1.1 */ public static List readLines(String path, Charset charset) throws IORuntimeException { - return readLines(path, charset, new ArrayList()); + return readLines(path, charset, new ArrayList<>()); } /** @@ -2398,7 +2398,7 @@ public class FileUtil { * @throws IORuntimeException IO异常 */ public static List readLines(File file, String charset) throws IORuntimeException { - return readLines(file, charset, new ArrayList()); + return readLines(file, charset, new ArrayList<>()); } /** @@ -2410,7 +2410,7 @@ public class FileUtil { * @throws IORuntimeException IO异常 */ public static List readLines(File file, Charset charset) throws IORuntimeException { - return readLines(file, charset, new ArrayList()); + return readLines(file, charset, new ArrayList<>()); } /**