mirror of https://github.com/apache/archiva.git
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:
parent
75e9f6fe7a
commit
bd3bcaa26f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue