Enhance CacheFile#invariant Assertion (#64272) (#64280)

Follow up to #64180 tightening the assertion further.
This commit is contained in:
Armin Braun 2020-10-28 13:43:39 +01:00 committed by GitHub
parent 0c47d49784
commit 6bd8f079a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ public class CacheFile {
private void decrementRefCount() {
final boolean released = refCounter.decRef();
assert released == false || Files.notExists(file);
assert released == false || (evicted.get() && Files.notExists(file));
}
/**