mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-07 22:27:59 +08:00
fix code
This commit is contained in:
parent
314cb1b64c
commit
a1018e2efe
@ -2325,7 +2325,7 @@ public class FileUtil {
|
|||||||
* @throws IORuntimeException IO异常
|
* @throws IORuntimeException IO异常
|
||||||
*/
|
*/
|
||||||
public static List<String> readLines(URL url, String charset) throws IORuntimeException {
|
public static List<String> readLines(URL url, String charset) throws IORuntimeException {
|
||||||
return readLines(url, charset, new ArrayList<String>());
|
return readLines(url, charset, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2337,7 +2337,7 @@ public class FileUtil {
|
|||||||
* @throws IORuntimeException IO异常
|
* @throws IORuntimeException IO异常
|
||||||
*/
|
*/
|
||||||
public static List<String> readLines(URL url, Charset charset) throws IORuntimeException {
|
public static List<String> readLines(URL url, Charset charset) throws IORuntimeException {
|
||||||
return readLines(url, charset, new ArrayList<String>());
|
return readLines(url, charset, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2361,7 +2361,7 @@ public class FileUtil {
|
|||||||
* @throws IORuntimeException IO异常
|
* @throws IORuntimeException IO异常
|
||||||
*/
|
*/
|
||||||
public static List<String> readLines(String path, String charset) throws IORuntimeException {
|
public static List<String> readLines(String path, String charset) throws IORuntimeException {
|
||||||
return readLines(path, charset, new ArrayList<String>());
|
return readLines(path, charset, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2374,7 +2374,7 @@ public class FileUtil {
|
|||||||
* @since 3.1.1
|
* @since 3.1.1
|
||||||
*/
|
*/
|
||||||
public static List<String> readLines(String path, Charset charset) throws IORuntimeException {
|
public static List<String> readLines(String path, Charset charset) throws IORuntimeException {
|
||||||
return readLines(path, charset, new ArrayList<String>());
|
return readLines(path, charset, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2398,7 +2398,7 @@ public class FileUtil {
|
|||||||
* @throws IORuntimeException IO异常
|
* @throws IORuntimeException IO异常
|
||||||
*/
|
*/
|
||||||
public static List<String> readLines(File file, String charset) throws IORuntimeException {
|
public static List<String> readLines(File file, String charset) throws IORuntimeException {
|
||||||
return readLines(file, charset, new ArrayList<String>());
|
return readLines(file, charset, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2410,7 +2410,7 @@ public class FileUtil {
|
|||||||
* @throws IORuntimeException IO异常
|
* @throws IORuntimeException IO异常
|
||||||
*/
|
*/
|
||||||
public static List<String> readLines(File file, Charset charset) throws IORuntimeException {
|
public static List<String> readLines(File file, Charset charset) throws IORuntimeException {
|
||||||
return readLines(file, charset, new ArrayList<String>());
|
return readLines(file, charset, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user