This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git


The following commit(s) were added to refs/heads/master by this push:
     new b150dc8  Fix LRUMap exception message (#72)
b150dc8 is described below

commit b150dc8860a7c44ce027f4f808ccfbc544d481f3
Author: Eitan Adler <[email protected]>
AuthorDate: Tue May 21 04:16:30 2019 -0700

    Fix LRUMap exception message (#72)
    
    The exception error message does not include an '=' before every field.
---
 src/main/java/org/apache/commons/collections4/map/LRUMap.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/collections4/map/LRUMap.java 
b/src/main/java/org/apache/commons/collections4/map/LRUMap.java
index 816416e..7f411cb 100644
--- a/src/main/java/org/apache/commons/collections4/map/LRUMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/LRUMap.java
@@ -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 
[email protected] 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 
[email protected] as a bug.");

Reply via email to