COLLECTIONS-716 Don't include email address in Exception messages
This commit is contained in:
parent
ea9b4b51b0
commit
cb57e04fd6
|
@ -271,8 +271,7 @@ public class LRUMap<K, V>
|
|||
// remove
|
||||
if(entry.before == null) {
|
||||
throw new IllegalStateException("Entry.before is null." +
|
||||
" 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.");
|
||||
" This should not occur if your keys are immutable, and you have used synchronization properly.");
|
||||
}
|
||||
entry.before.after = entry.after;
|
||||
entry.after.before = entry.before;
|
||||
|
@ -283,7 +282,7 @@ public class LRUMap<K, V>
|
|||
header.before = entry;
|
||||
} else if (entry == header) {
|
||||
throw new IllegalStateException("Can't move header to MRU" +
|
||||
" (please report this to dev@commons.apache.org)");
|
||||
" This should not occur if your keys are immutable, and you have used synchronization properly.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -334,8 +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 +
|
||||
" 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.");
|
||||
" This should not occur if your keys are immutable, and you have used synchronization properly.");
|
||||
}
|
||||
} else {
|
||||
removeLRUEntry = removeLRU(reuse);
|
||||
|
@ -346,8 +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 +
|
||||
" 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.");
|
||||
" This should not occur if your keys are immutable, and you have used synchronization properly.");
|
||||
}
|
||||
reuseMapping(reuse, hashIndex, hashCode, key, value);
|
||||
} else {
|
||||
|
@ -387,8 +384,7 @@ public class LRUMap<K, V>
|
|||
throw new IllegalStateException(
|
||||
"Entry.next=null, data[removeIndex]=" + data[removeIndex] + " previous=" + previous +
|
||||
" 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.");
|
||||
" This should not occur if your keys are immutable, and you have used synchronization properly.");
|
||||
}
|
||||
|
||||
// reuse the entry
|
||||
|
@ -400,8 +396,7 @@ public class LRUMap<K, V>
|
|||
throw new IllegalStateException(
|
||||
"NPE, entry=" + entry + " entryIsHeader=" + (entry==header) +
|
||||
" 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.");
|
||||
" This should not occur if your keys are immutable, and you have used synchronization properly.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue