maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject [31/50] git commit: added generics to hand-written code in model
Date Sat, 01 Dec 2012 10:39:57 GMT
added generics to hand-written code in model

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-2/branches/maven-2.2.x@982716 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/920bac00
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/920bac00
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/920bac00

Branch: refs/heads/maven-2.2.x
Commit: 920bac00dd01dfc1e2298a26513418ddbe2a2f6b
Parents: 23aed6f
Author: Herve Boutemy <hboutemy@apache.org>
Authored: Thu Aug 5 18:06:15 2010 +0000
Committer: Herve Boutemy <hboutemy@apache.org>
Committed: Thu Aug 5 18:06:15 2010 +0000

----------------------------------------------------------------------
 .../src/main/mdo/metadata.mdo                      |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/920bac00/maven-repository-metadata/src/main/mdo/metadata.mdo
----------------------------------------------------------------------
diff --git a/maven-repository-metadata/src/main/mdo/metadata.mdo b/maven-repository-metadata/src/main/mdo/metadata.mdo
index 13c7563..21c7998 100644
--- a/maven-repository-metadata/src/main/mdo/metadata.mdo
+++ b/maven-repository-metadata/src/main/mdo/metadata.mdo
@@ -79,18 +79,16 @@ under the License.
     {
         boolean changed = false;
 
-        for ( java.util.Iterator i = sourceMetadata.getPlugins().iterator(); i.hasNext();
)
+        for ( Plugin plugin : sourceMetadata.getPlugins() )
         {
-            Plugin plugin = (Plugin) i.next();
             boolean found = false;
 
-            for ( java.util.Iterator it = getPlugins().iterator(); it.hasNext() &&
!found; )
+            for ( Plugin preExisting : getPlugins() )
             {
-                Plugin preExisting = (Plugin) it.next();
-
                 if ( preExisting.getPrefix().equals( plugin.getPrefix() ) )
                 {
                     found = true;
+                    break;
                 }
             }
 
@@ -121,9 +119,8 @@ under the License.
                 changed = true;
             }
 
-            for ( java.util.Iterator i = versioning.getVersions().iterator(); i.hasNext();
)
+            for ( String version : versioning.getVersions() )
             {
-                String version = (String) i.next();
                 if ( !v.getVersions().contains( version ) )
                 {
                     changed = true;


Mime
View raw message