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-11 18:23:51 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-11 18:25:36 -0800
commit52aff7dcac17c73a221487acc147e631c75124cd (patch)
tree10dcc3fe0007cc3c42df9ab4b570f140dac63316 /src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java
parent15feaf99b780e4a2c4cdd2647e5b51ea98579aad (diff)
Thread FileSystem instance through a few call sites.
PiperOrigin-RevId: 178704585
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.java6
1 files changed, 3 insertions, 3 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 e55877dd66..dca8b95906 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
@@ -179,7 +179,7 @@ public class JavaIoFileSystem extends AbstractFileSystemWithCustomStat {
}
@Override
- protected void setWritable(Path path, boolean writable) throws IOException {
+ public void setWritable(Path path, boolean writable) throws IOException {
File file = getIoFile(path);
if (!file.exists()) {
throw new FileNotFoundException(path + ERR_NO_SUCH_FILE_OR_DIR);
@@ -217,7 +217,7 @@ public class JavaIoFileSystem extends AbstractFileSystemWithCustomStat {
}
@Override
- protected boolean createDirectory(Path path) throws IOException {
+ public boolean createDirectory(Path path) throws IOException {
// We always synchronize on the current path before doing it on the parent path and file system
// path structure ensures that this locking order will never be reversed.
@@ -344,7 +344,7 @@ public class JavaIoFileSystem extends AbstractFileSystemWithCustomStat {
}
@Override
- protected boolean delete(Path path) throws IOException {
+ public boolean delete(Path path) throws IOException {
File file = getIoFile(path);
long startTime = Profiler.nanoTimeMaybe();
synchronized (path) {