maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1498133 - /maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/PathSet.java
Date Sun, 30 Jun 2013 14:38:22 GMT
Author: rfscholte
Date: Sun Jun 30 14:38:22 2013
New Revision: 1498133

URL: http://svn.apache.org/r1498133
Log:
Apply generics

Modified:
    maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/PathSet.java

Modified: maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/PathSet.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/PathSet.java?rev=1498133&r1=1498132&r2=1498133&view=diff
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/PathSet.java
(original)
+++ maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/PathSet.java
Sun Jun 30 14:38:22 2013
@@ -40,7 +40,7 @@ import java.util.Set;
  * @version $Id$
  */
 
-public class PathSet
+public class PathSet implements Iterable<String>
 {
 
     /**
@@ -145,9 +145,9 @@ public class PathSet
      */
     public void addAll( PathSet paths, String prefix )
     {
-        for ( Iterator iter = paths.iterator(); iter.hasNext(); )
+        for ( String path : paths )
         {
-            add( prefix + iter.next() );
+            add( prefix + path );
         }
     }
 
@@ -233,7 +233,7 @@ public class PathSet
      */
     public void addPrefix( String prefix )
     {
-        final Set<String> newSet = new HashSet();
+        final Set<String> newSet = new HashSet<String>();
         for ( String path : pathsSet )
         {
             newSet.add( normalizeFilePath( prefix + path ) );



Mime
View raw message