aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java
diff options
context:
space:
mode:
authorGravatar tomlu <tomlu@google.com>2017-12-08 14:19:42 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-08 14:23:59 -0800
commitc2f6ae8f61b15c621323b62665b324ad21d59f32 (patch)
tree2496ec0d1f59cea23b7965a0547169e30bd3e14b /src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java
parentf35c8a0dfb74f7b0d7b292d5a23eb7ce10723954 (diff)
Thread filesystem through codebase.
RELNOTES: None PiperOrigin-RevId: 178426166
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java b/src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java
index e5ca35d3f4..e55877dd66 100644
--- a/src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java
+++ b/src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java
@@ -308,7 +308,7 @@ public class JavaIoFileSystem extends AbstractFileSystemWithCustomStat {
}
@Override
- protected void renameTo(Path sourcePath, Path targetPath) throws IOException {
+ public void renameTo(Path sourcePath, Path targetPath) throws IOException {
synchronized (sourcePath) {
File sourceFile = getIoFile(sourcePath);
File targetFile = getIoFile(targetPath);
@@ -382,7 +382,7 @@ public class JavaIoFileSystem extends AbstractFileSystemWithCustomStat {
}
@Override
- protected void setLastModifiedTime(Path path, long newTime) throws IOException {
+ public void setLastModifiedTime(Path path, long newTime) throws IOException {
File file = getIoFile(path);
if (!file.setLastModified(newTime == -1L ? clock.currentTimeMillis() : newTime)) {
if (!file.exists()) {