Fix LRUMap exception message (#72)

The exception error message does not include an '=' before every field.
This commit is contained in:
Eitan Adler 2019-05-21 04:16:30 -07:00 committed by Gary Gregory
parent f4cc9984c3
commit b150dc8860

View File

@ -332,7 +332,7 @@ public class LRUMap<K, V>
}
if (reuse == null) {
throw new IllegalStateException(
"Entry.after=null, header.after" + header.after + " header.before" + header.before +
"Entry.after=null, header.after=" + header.after + " header.before=" + header.before +
" key=" + key + " value=" + value + " size=" + size + " maxSize=" + maxSize +
" Please check that your keys are immutable, and that you have used synchronization properly." +
" If so, then please report this to dev@commons.apache.org as a bug.");
@ -344,7 +344,7 @@ public class LRUMap<K, V>
if (removeLRUEntry) {
if (reuse == null) {
throw new IllegalStateException(
"reuse=null, header.after=" + header.after + " header.before" + header.before +
"reuse=null, header.after=" + header.after + " header.before=" + header.before +
" key=" + key + " value=" + value + " size=" + size + " maxSize=" + maxSize +
" Please check that your keys are immutable, and that you have used synchronization properly." +
" If so, then please report this to dev@commons.apache.org as a bug.");