From bd3bcaa26faf2eca9f6d760fdf6578c6dee83a55 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Tue, 17 Mar 2009 14:29:06 +0000 Subject: [PATCH] clear warnings for database-consumers git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755267 13f79535-47bb-0310-9956-ffa450edef68 --- .../database/ProjectModelToDatabaseConsumerTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.39.5