aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Mark Schaller <mschaller@google.com>2015-05-15 13:59:36 +0000
committerGravatar Laszlo Csomor <laszlocsomor@google.com>2015-05-18 09:16:30 +0000
commite2ba69989dad01488d5f32db013ebd2b8335d0b7 (patch)
treed07800af9d36e8cbf8e41ee8ba5f7652dafbbc82 /src/main/java
parent2c00ce31c5171472687a6456bca335330fc86c5b (diff)
Fix doc for CompactPersistentActionCache.validateIntegrity
-- MOS_MIGRATED_REVID=93713456
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/cache/CompactPersistentActionCache.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/cache/CompactPersistentActionCache.java b/src/main/java/com/google/devtools/build/lib/actions/cache/CompactPersistentActionCache.java
index 3e608cf2da..92cdb5e07a 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/cache/CompactPersistentActionCache.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/cache/CompactPersistentActionCache.java
@@ -190,7 +190,8 @@ public class CompactPersistentActionCache implements ActionCache {
}
/**
- * @return false iff indexer contains no data or integrity check has failed.
+ * @return non-null error description if indexer contains no data or integrity check has failed,
+ * and null otherwise
*/
private static String validateIntegrity(int indexerSize, byte[] validationRecord) {
if (indexerSize == 0) {
@@ -210,7 +211,6 @@ public class CompactPersistentActionCache implements ActionCache {
} catch (BufferUnderflowException e) {
return e.getMessage();
}
-
}
public static Path cacheFile(Path cacheRoot) {