]> source.dussan.org Git - archiva.git/commitdiff
clear warnings for database-consumers
authorBrett Porter <brett@apache.org>
Tue, 17 Mar 2009 14:29:06 +0000 (14:29 +0000)
committerBrett Porter <brett@apache.org>
Tue, 17 Mar 2009 14:29:06 +0000 (14:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755267 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-consumers/archiva-database-consumers/src/test/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumerTest.java

index 61bbb48feefada37e69eecf60915e13e06371ec9..084c9778aaff8b9a7c2622fcdf20a50f9298846a 100644 (file)
@@ -20,7 +20,6 @@ package org.apache.maven.archiva.consumers.database;
  */
 
 import java.io.File;
-import java.util.Iterator;
 
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
 import org.apache.maven.archiva.configuration.Configuration;
@@ -85,9 +84,8 @@ public class ProjectModelToDatabaseConsumerTest
 
     private boolean hasDependency( ArchivaProjectModel model, String key )
     {
-        for ( Iterator i = model.getDependencies().iterator(); i.hasNext(); )
+        for ( Dependency dependency : model.getDependencies() )
         {
-            Dependency dependency = (Dependency) i.next();
             if ( key.equals( Keys.toKey( dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion() ) ) )
             {
                 return true;