diff options
author | 2015-11-18 18:38:14 +0000 | |
---|---|---|
committer | 2015-11-19 10:00:27 +0000 | |
commit | 13a74c0327847188de3344b6376ddd7705b013eb (patch) | |
tree | 0b73170174aeb580b8910d39ab23a461ce0e8331 /src/main/java/com/google/devtools/build/lib/vfs/JavaIoFileSystem.java | |
parent | cfa74ac167a7f651e757224f3930e731560e293c (diff) |
Make AbstractFileSystem correct in isolation. Previously there was (accidentally) the implicit requirement that the deriving class override FileSystem#stat.
Even though this wasn't a problem in practice in the Bazel codebase (since all of our transitive subclasses had custom 'stat' implementation), it's good hygiene to have things correct (e.g. if we added a new subclass).
--
MOS_MIGRATED_REVID=108158039
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.java | 2 |
1 files changed, 1 insertions, 1 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 9d9f16e5ae..d4e69582e7 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 @@ -36,7 +36,7 @@ import java.util.Collection; * system call - they all are associated with the VFS_STAT task. */ @ThreadSafe -public class JavaIoFileSystem extends AbstractFileSystem { +public class JavaIoFileSystem extends AbstractFileSystemWithCustomStat { private static final LinkOption[] NO_LINK_OPTION = new LinkOption[0]; // This isn't generally safe; we rely on the file system APIs not modifying the array. private static final LinkOption[] NOFOLLOW_LINKS_OPTION = |