diff options
author | tomlu <tomlu@google.com> | 2017-10-19 21:35:06 +0200 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2017-10-20 14:04:05 +0200 |
commit | 39fab1020379d8e4554e5ddf1f269f11a37b6953 (patch) | |
tree | ea2f941346edf709515dc234940608b226a8aa5f /src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs | |
parent | cc519a047821d7e48b642d95ee6f7dfe2350bed8 (diff) |
Add Path argument to supportsModifications, supports*LinksNatively.
This works better with UnionFileSystem, as (eg.) different mapped file systems might not agree on whether they are read-only.
No actual code changes have been made that actually uses this argument, so this should be a behaviour no-op.
PiperOrigin-RevId: 172782759
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java b/src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java index dffdd256ef..b3e59d18b0 100644 --- a/src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java +++ b/src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java @@ -643,17 +643,17 @@ public class InMemoryFileSystem extends ScopeEscapableFileSystem { } @Override - public boolean supportsModifications() { + public boolean supportsModifications(Path path) { return true; } @Override - public boolean supportsSymbolicLinksNatively() { + public boolean supportsSymbolicLinksNatively(Path path) { return true; } @Override - public boolean supportsHardLinksNatively() { + public boolean supportsHardLinksNatively(Path path) { return true; } |