commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1157887 - in /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress: AbstractTestCase.java changes/ChangeSetTestCase.java
Date Mon, 15 Aug 2011 15:26:31 GMT
Author: sebb
Date: Mon Aug 15 15:26:30 2011
New Revision: 1157887

URL: http://svn.apache.org/viewvc?rev=1157887&view=rev
Log:
Raw types - internal code

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java?rev=1157887&r1=1157886&r2=1157887&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/AbstractTestCase.java
Mon Aug 15 15:26:30 2011
@@ -346,8 +346,8 @@ public abstract class AbstractTestCase e
             }
             in.close();
             if (expected != null && expected.size() > 0) {
-                for (Iterator iterator = expected.iterator(); iterator.hasNext();) {
-                    String name = (String) iterator.next();
+                for (Iterator<String> iterator = expected.iterator(); iterator.hasNext();)
{
+                    String name = iterator.next();
                     fail("Expected entry: " + name);
                 }
             }

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java?rev=1157887&r1=1157886&r2=1157887&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
Mon Aug 15 15:26:30 2011
@@ -46,9 +46,9 @@ public final class ChangeSetTestCase ext
     
     // Delete a directory tree
     private void archiveListDeleteDir(String prefix){
-        Iterator it = archiveList.iterator();
+        Iterator<String> it = archiveList.iterator();
         while(it.hasNext()){
-            String entry = (String) it.next();
+            String entry = it.next();
             if (entry.startsWith(prefix+"/")){ // TODO won't work with folders
                 it.remove();
             }
@@ -57,9 +57,9 @@ public final class ChangeSetTestCase ext
 
     // Delete a single file
     private void archiveListDelete(String prefix){
-        Iterator it = archiveList.iterator();
+        Iterator<String> it = archiveList.iterator();
         while(it.hasNext()){
-            String entry = (String) it.next();
+            String entry = it.next();
             if (entry.equals(prefix)){
                 it.remove();
             }



Mime
View raw message