You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2008/03/26 07:04:57 UTC

svn commit: r641165 - /commons/proper/collections/trunk/src/java/org/apache/commons/collections/collection/PredicatedCollection.java

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");
         }
     }