Consistent indentation with spaces rather than tabs (#6147)

This commit is contained in:
Basil Crow authored and GitHub committed 2022-01-01 11:45:56 -08:00
1 parent 0303e31890
commit 02eecd8a49
26 files changed
+420 -417

No files matched your search

+5 -5
View File
@@ -2364,9 +2364,9 @@ public final class FilePath implements SerializableOnlyOverRemoting {
* be on the some host
*/
public void renameTo(final FilePath target) throws IOException, InterruptedException {
if(this.channel != target.channel) {
throw new IOException("renameTo target must be on the same host");
}
if(this.channel != target.channel) {
throw new IOException("renameTo target must be on the same host");
}
act(new RenameTo(target));
}
private static class RenameTo extends MasterToSlaveFileCallable<Void> {
@@ -2695,14 +2695,14 @@ public final class FilePath implements SerializableOnlyOverRemoting {
}
}
private boolean tryCopyWithAttributes(File f, Path targetPath) {
try {
try {
Files.copy(fileToPath(f), targetPath,
StandardCopyOption.COPY_ATTRIBUTES, StandardCopyOption.REPLACE_EXISTING);
} catch (IOException e) {
LOGGER.log(Level.FINE, "Unable to copy: {0}", e.getMessage());
return false;
}
return true;
return true;
}
@Override
public boolean understandsSymlink() {