commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r666321 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/And.java
Date Tue, 10 Jun 2008 20:56:53 GMT
Author: mbenson
Date: Tue Jun 10 13:56:52 2008
New Revision: 666321

URL: http://svn.apache.org/viewvc?rev=666321&view=rev
Log:
unchecked

Modified:
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/And.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/And.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/And.java?rev=666321&r1=666320&r2=666321&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/And.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/And.java
Tue Jun 10 13:56:52 2008
@@ -92,8 +92,8 @@
      * {@inheritDoc}
      */
     public boolean test() {
-        for (Iterator iter = getPredicateIterator(); iter.hasNext();) {
-            if (!((Predicate) iter.next()).test()) {
+        for (Iterator<Predicate> iter = getPredicateIterator(); iter.hasNext();) {
+            if (!iter.next().test()) {
                 return false;
             }
         }



Mime
View raw message