Automatic code cleanup.
PiperOrigin-RevId: 433549877
diff --git a/src/main/java/com/google/devtools/build/lib/unix/FileStatus.java b/src/main/java/com/google/devtools/build/lib/unix/FileStatus.java
index 9a63fee..3182e2e 100644
--- a/src/main/java/com/google/devtools/build/lib/unix/FileStatus.java
+++ b/src/main/java/com/google/devtools/build/lib/unix/FileStatus.java
@@ -82,20 +82,26 @@
return (st_mode & S_IFMT) == S_IFREG;
}
- /**
- * Returns true iff this file is a directory.
- */
+ /** Returns true iff this file is a directory. */
public boolean isDirectory() {
return (st_mode & S_IFMT) == S_IFDIR;
}
- /**
- * Returns true iff this file is a symbolic link.
- */
+ public static boolean isDirectory(int rawType) {
+ int type = rawType & S_IFMT;
+ return type == S_IFDIR;
+ }
+
+ /** Returns true iff this file is a symbolic link. */
public boolean isSymbolicLink() {
return (st_mode & S_IFMT) == S_IFLNK;
}
+ public static boolean isSymbolicLink(int rawType) {
+ int type = rawType & S_IFMT;
+ return type == S_IFLNK;
+ }
+
/**
* Returns true iff this file is a character device.
*/
@@ -268,14 +274,4 @@
int type = rawType & S_IFMT;
return type == S_IFSOCK || type == S_IFBLK || type == S_IFCHR || type == S_IFIFO;
}
-
- public static boolean isDirectory(int rawType) {
- int type = rawType & S_IFMT;
- return type == S_IFDIR;
- }
-
- public static boolean isSymbolicLink(int rawType) {
- int type = rawType & S_IFMT;
- return type == S_IFLNK;
- }
}