Better error message (also shorter and makes Checkstyle happy.)

This commit is contained in:
Gary Gregory 2019-09-14 15:28:11 -04:00
parent a2317f6299
commit 6834b1791c
1 changed files with 2 additions and 2 deletions

View File

@ -333,7 +333,7 @@ public class LRUMap<K, V>
throw new IllegalStateException(
"Entry.after=null, header.after=" + header.after + " header.before=" + header.before +
" key=" + key + " value=" + value + " size=" + size + " maxSize=" + maxSize +
" This should not occur if your keys are immutable, and you have used synchronization properly.");
" This should not occur if your keys are immutable and you used synchronization properly.");
}
} else {
removeLRUEntry = removeLRU(reuse);
@ -344,7 +344,7 @@ public class LRUMap<K, V>
throw new IllegalStateException(
"reuse=null, header.after=" + header.after + " header.before=" + header.before +
" key=" + key + " value=" + value + " size=" + size + " maxSize=" + maxSize +
" This should not occur if your keys are immutable, and you have used synchronization properly.");
" This should not occur if your keys are immutable and you used synchronization properly.");
}
reuseMapping(reuse, hashIndex, hashCode, key, value);
} else {