clear warnings for database-consumers

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755267 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2009-03-17 14:29:06 +00:00
parent 75e9f6fe7a
commit bd3bcaa26f
1 changed files with 1 additions and 3 deletions

View 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;