aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/vfs
diff options
context:
space:
mode:
authorGravatar jcater <jcater@google.com>2018-05-01 20:33:18 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-01 20:34:52 -0700
commit0a57d3dcb1cc014d65dbeb604035bb34a7191e29 (patch)
treecbf7524ded896a1d2d213df8b47696ea0ec8b23b /src/main/java/com/google/devtools/build/lib/vfs
parent56fbc9998858bc2084a351576b20818bb9290a73 (diff)
Clean up code that directly imports nested classes like Builder, Entry, etc.
PiperOrigin-RevId: 195040539
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/vfs')
-rw-r--r--src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java b/src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java
index 38da81c6d9..2169c18b9c 100644
--- a/src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java
+++ b/src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java
@@ -22,7 +22,6 @@ import com.google.common.hash.Hashing;
import com.google.common.io.ByteSource;
import com.google.common.io.CharStreams;
import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadSafe;
-import com.google.devtools.build.lib.vfs.Dirent.Type;
import com.google.devtools.common.options.EnumConverter;
import java.io.FileNotFoundException;
import java.io.IOException;
@@ -584,17 +583,17 @@ public abstract class FileSystem {
protected static Dirent.Type direntFromStat(FileStatus stat) {
if (stat == null) {
- return Type.UNKNOWN;
+ return Dirent.Type.UNKNOWN;
} else if (stat.isSpecialFile()) {
- return Type.UNKNOWN;
+ return Dirent.Type.UNKNOWN;
} else if (stat.isFile()) {
- return Type.FILE;
+ return Dirent.Type.FILE;
} else if (stat.isDirectory()) {
- return Type.DIRECTORY;
+ return Dirent.Type.DIRECTORY;
} else if (stat.isSymbolicLink()) {
- return Type.SYMLINK;
+ return Dirent.Type.SYMLINK;
} else {
- return Type.UNKNOWN;
+ return Dirent.Type.UNKNOWN;
}
}