mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-05 16:15:54 +00:00
Use Java 11 methods where possible (#6700)
This commit is contained in:
1 parent
1a6d9f079d
commit
6d179998e1
148 files changed
+419
-527
No files matched your search
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user