Use Java 11 methods where possible (#6700)

This commit is contained in:
Basil Crow authored and GitHub committed 2022-06-30 09:31:36 -07:00
1 parent 1a6d9f079d
commit 6d179998e1
148 files changed
+419 -527

No files matched your search

+1 -1
View File
@@ -2382,7 +2382,7 @@ public final class FilePath implements SerializableOnlyOverRemoting {
@Override
public String invoke(File f, VirtualChannel channel) throws IOException, InterruptedException {
return new String(Files.readAllBytes(fileToPath(f)), Charset.defaultCharset());
return Files.readString(fileToPath(f), Charset.defaultCharset());
}
}