From: Brett Porter Date: Tue, 17 Mar 2009 14:29:06 +0000 (+0000) Subject: clear warnings for database-consumers X-Git-Tag: archiva-1.2~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd3bcaa26faf2eca9f6d760fdf6578c6dee83a55;p=archiva.git clear warnings for database-consumers git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755267 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-database-consumers/src/test/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumerTest.java b/archiva-modules/archiva-base/archiva-consumers/archiva-database-consumers/src/test/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumerTest.java index 61bbb48fe..084c9778a 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-database-consumers/src/test/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumerTest.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-database-consumers/src/test/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumerTest.java @@ -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;