aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/vfs/FileStatus.java
diff options
context:
space:
mode:
authorGravatar nharmata <nharmata@google.com>2017-04-28 17:41:29 +0200
committerGravatar Vladimir Moskva <vladmos@google.com>2017-04-28 18:33:14 +0200
commit2541fd93287ff135c3348a3986cea7dfc8444f71 (patch)
treed40b47d7e9de5ccca193f2bae46abaafb732fb30 /src/main/java/com/google/devtools/build/lib/vfs/FileStatus.java
parent6af104a0cf5662d53e4f55b7d5a64255ce470a53 (diff)
Remove stale comment and add back a removed TODO.
RELNOTES: None PiperOrigin-RevId: 154543320
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/vfs/FileStatus.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/vfs/FileStatus.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/FileStatus.java b/src/main/java/com/google/devtools/build/lib/vfs/FileStatus.java
index 712f96da14..f6112beaf8 100644
--- a/src/main/java/com/google/devtools/build/lib/vfs/FileStatus.java
+++ b/src/main/java/com/google/devtools/build/lib/vfs/FileStatus.java
@@ -65,14 +65,15 @@ public interface FileStatus {
/**
* Returns the last modified time of this file's data (milliseconds since
* UNIX epoch).
+ *
+ * TODO(bazel-team): Unix actually gives us nanosecond resolution for mtime and ctime. Consider
+ * making use of this.
*/
long getLastModifiedTime() throws IOException;
/**
* Returns the last change time of this file, where change means any change
* to the file, including metadata changes (milliseconds since UNIX epoch).
- *
- * Note: UNIX uses seconds!
*/
long getLastChangeTime() throws IOException;
@@ -83,5 +84,5 @@ public interface FileStatus {
* <p>Think of this value as a reference to the underlying inode. "mv"ing file a to file b
* ought to cause the node ID of b to change, but appending / modifying b should not.
*/
- public long getNodeId() throws IOException;
+ long getNodeId() throws IOException;
}