commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r641165 - /commons/proper/collections/trunk/src/java/org/apache/commons/collections/collection/PredicatedCollection.java
Date Wed, 26 Mar 2008 06:04:57 GMT
Author: bayard
Date: Tue Mar 25 23:04:56 2008
New Revision: 641165

URL: http://svn.apache.org/viewvc?rev=641165&view=rev
Log:
Adding the predicate to the IllegalArgumentException as per COLLECTIONS-280

Modified:
    commons/proper/collections/trunk/src/java/org/apache/commons/collections/collection/PredicatedCollection.java

Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/collection/PredicatedCollection.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/collection/PredicatedCollection.java?rev=641165&r1=641164&r2=641165&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/collection/PredicatedCollection.java
(original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/collection/PredicatedCollection.java
Tue Mar 25 23:04:56 2008
@@ -98,7 +98,7 @@
      */
     protected void validate(Object object) {
         if (predicate.evaluate(object) == false) {
-            throw new IllegalArgumentException("Cannot add Object '" + object + "' - Predicate
rejected it");
+            throw new IllegalArgumentException("Cannot add Object '" + object + "' - Predicate
'" + predicate + "' rejected it");
         }
     }
 



Mime
View raw message