mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-12 03:26:59 +00:00
Update FilePath.java
This commit is contained in:
1 parent
dca272db6b
commit
ca6361e259
1 file changed
+2
-3
@@ -2031,14 +2031,13 @@ public final class FilePath implements Serializable {
|
||||
*/
|
||||
public String readToString() throws IOException, InterruptedException {
|
||||
return act(new ReadToString());
|
||||
}
|
||||
}
|
||||
private final class ReadToString extends SecureFileCallable<String> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Override
|
||||
public String invoke(File f, VirtualChannel channel) throws IOException, InterruptedException {
|
||||
return new String(Files.readAllBytes(fileToPath(reading(f))));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user