diff options
author | tomlu <tomlu@google.com> | 2017-12-11 18:23:51 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-12-11 18:25:36 -0800 |
commit | 52aff7dcac17c73a221487acc147e631c75124cd (patch) | |
tree | 10dcc3fe0007cc3c42df9ab4b570f140dac63316 /src/main/java/com/google/devtools/build/lib/unix | |
parent | 15feaf99b780e4a2c4cdd2647e5b51ea98579aad (diff) |
Thread FileSystem instance through a few call sites.
PiperOrigin-RevId: 178704585
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/unix')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/unix/UnixFileSystem.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/unix/UnixFileSystem.java b/src/main/java/com/google/devtools/build/lib/unix/UnixFileSystem.java index cfd07b336c..7b82dcc06a 100644 --- a/src/main/java/com/google/devtools/build/lib/unix/UnixFileSystem.java +++ b/src/main/java/com/google/devtools/build/lib/unix/UnixFileSystem.java @@ -270,7 +270,7 @@ public class UnixFileSystem extends AbstractFileSystemWithCustomStat { } @Override - protected void setWritable(Path path, boolean writable) throws IOException { + public void setWritable(Path path, boolean writable) throws IOException { modifyPermissionBits(path, 0200, writable); } @@ -307,7 +307,7 @@ public class UnixFileSystem extends AbstractFileSystemWithCustomStat { } @Override - protected boolean createDirectory(Path path) throws IOException { + public boolean createDirectory(Path path) throws IOException { synchronized (path) { // Note: UNIX mkdir(2), FilesystemUtils.mkdir() and createDirectory all // have different ways of representing failure! @@ -361,7 +361,7 @@ public class UnixFileSystem extends AbstractFileSystemWithCustomStat { } @Override - protected boolean delete(Path path) throws IOException { + public boolean delete(Path path) throws IOException { String name = path.toString(); long startTime = Profiler.nanoTimeMaybe(); synchronized (path) { |