commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1680741 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/ConditionalFileFilterAbstractTestCase.java
Date Thu, 21 May 2015 06:38:16 GMT
Author: britter
Date: Thu May 21 06:38:16 2015
New Revision: 1680741

URL: http://svn.apache.org/r1680741
Log:
Use enhanced for loop

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/ConditionalFileFilterAbstractTestCase.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/ConditionalFileFilterAbstractTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/ConditionalFileFilterAbstractTestCase.java?rev=1680741&r1=1680740&r2=1680741&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/ConditionalFileFilterAbstractTestCase.java
(original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/ConditionalFileFilterAbstractTestCase.java
Thu May 21 06:38:16 2015
@@ -75,9 +75,9 @@ public abstract class ConditionalFileFil
     filters.add(new TesterTrueFileFilter());
     filters.add(new TesterTrueFileFilter());
     filters.add(new TesterTrueFileFilter());
-    for(int i = 0; i < filters.size(); i++) {
-      fileFilter.removeFileFilter(filters.get(i));
-      assertTrue("file filter removed", !fileFilter.getFileFilters().contains(filters.get(i)));
+    for (TesterTrueFileFilter filter : filters) {
+      fileFilter.removeFileFilter(filter);
+      assertTrue("file filter removed", !fileFilter.getFileFilters().contains(filter));
     }
     assertEquals("file filters count", 0, fileFilter.getFileFilters().size());
   }



Mime
View raw message