Remove exact refrence to imported class in FileUtils (Thanks @Konicai)

This commit is contained in:
rtm516 2021-08-25 15:53:20 +01:00
parent 65e85eb853
commit 26a778fd77
No known key found for this signature in database
GPG key ID: 331715B8B007C67A

View file

@ -234,7 +234,7 @@ public class FileUtils {
*/
public static Stream<String> readAllLines(Path path) {
try {
return new BufferedReader(new InputStreamReader(java.nio.file.Files.newInputStream(path))).lines();
return new BufferedReader(new InputStreamReader(Files.newInputStream(path))).lines();
} catch (IOException e) {
throw new RuntimeException("Error while trying to read file!", e);
}