mirror of https://github.com/apache/maven.git
add generics.
remove unused imports. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@819726 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9bc16f0dc1
commit
e2594ad022
|
@ -23,10 +23,12 @@ import java.util.HashMap;
|
|||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
|
||||
public class ManagedVersionMap
|
||||
extends HashMap
|
||||
extends HashMap<String, Artifact>
|
||||
{
|
||||
public ManagedVersionMap( Map map )
|
||||
public ManagedVersionMap( Map<String, Artifact> map )
|
||||
{
|
||||
super();
|
||||
if ( map != null )
|
||||
|
@ -38,10 +40,10 @@ public class ManagedVersionMap
|
|||
public String toString()
|
||||
{
|
||||
StringBuilder buffer = new StringBuilder( "ManagedVersionMap (" + size() + " entries)\n" );
|
||||
Iterator iter = keySet().iterator();
|
||||
Iterator<String> iter = keySet().iterator();
|
||||
while ( iter.hasNext() )
|
||||
{
|
||||
String key = (String) iter.next();
|
||||
String key = iter.next();
|
||||
buffer.append( key ).append( "=" ).append( get( key ) );
|
||||
if ( iter.hasNext() )
|
||||
{
|
||||
|
|
|
@ -64,7 +64,7 @@ public class DefaultMavenExecutionResult
|
|||
return this;
|
||||
}
|
||||
|
||||
public List getTopologicallySortedProjects()
|
||||
public List<MavenProject> getTopologicallySortedProjects()
|
||||
{
|
||||
return topologicallySortedProjects;
|
||||
}
|
||||
|
|
|
@ -17,11 +17,7 @@ package org.apache.maven.plugin;
|
|||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
import org.apache.maven.artifact.repository.RepositoryRequest;
|
||||
import org.apache.maven.artifact.resolver.ArtifactResolutionException;
|
||||
import org.apache.maven.execution.MavenSession;
|
||||
|
|
|
@ -31,14 +31,14 @@ public final class SettingsValidationResult
|
|||
{
|
||||
private final static String NEWLINE = System.getProperty( "line.separator" );
|
||||
|
||||
private List messages;
|
||||
private List<String> messages;
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
*/
|
||||
public SettingsValidationResult()
|
||||
{
|
||||
messages = new ArrayList();
|
||||
messages = new ArrayList<String>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,7 +61,7 @@ public final class SettingsValidationResult
|
|||
/**
|
||||
* @return
|
||||
*/
|
||||
public List getMessages()
|
||||
public List<String> getMessages()
|
||||
{
|
||||
return Collections.unmodifiableList( messages );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue