some clean up from inspections

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163441 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-01 06:20:30 +00:00
parent cdd2cd212a
commit 73576d5bec
11 changed files with 16 additions and 46 deletions

View File

@ -18,7 +18,6 @@ package org.apache.maven.artifact.deployer;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.repository.ArtifactRepository;
import java.io.File;

View File

@ -1,9 +1,5 @@
package org.apache.maven.artifact.handler;
import org.apache.maven.artifact.Artifact;
import java.io.File;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*

View File

@ -16,10 +16,6 @@ package org.apache.maven.artifact.handler;
* limitations under the License.
*/
import org.apache.maven.artifact.Artifact;
import java.io.File;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id$

View File

@ -16,10 +16,6 @@ package org.apache.maven.artifact.handler;
* limitations under the License.
*/
import org.apache.maven.artifact.Artifact;
import java.io.File;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id$

View File

@ -16,10 +16,6 @@ package org.apache.maven.artifact.handler;
* limitations under the License.
*/
import org.apache.maven.artifact.Artifact;
import java.io.File;
/**
* @todo [BP] should be removed and replaced with scope if other design is approved
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>

View File

@ -18,7 +18,6 @@ package org.apache.maven.artifact.installer;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.repository.ArtifactRepository;
import java.io.File;

View File

@ -17,7 +17,6 @@ package org.apache.maven.artifact.repository;
*/
import org.apache.maven.wagon.repository.Repository;
import org.codehaus.plexus.util.StringUtils;
/**
* This class is an abstraction of the location from/to resources

View File

@ -1,12 +1,5 @@
package org.apache.maven.artifact.request;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.repository.ArtifactRepository;
import java.util.Map;
import java.util.Set;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
@ -23,6 +16,12 @@ import java.util.Set;
* limitations under the License.
*/
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repository.ArtifactRepository;
import java.util.Map;
import java.util.Set;
/**
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
* @version $Id$

View File

@ -62,7 +62,7 @@ public class DefaultArtifactResolver
return artifact;
}
private String LS = System.getProperty( "line.separator" );
private static final String LS = System.getProperty( "line.separator" );
private String artifactNotFound( Artifact artifact, Set remoteRepositories )
{

View File

@ -16,9 +16,8 @@ package org.apache.maven.artifact.installer;
* limitations under the License.
*/
import org.apache.maven.artifact.ArtifactComponentTestCase;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.DefaultArtifact;
import org.apache.maven.artifact.ArtifactComponentTestCase;
import java.io.File;

View File

@ -35,8 +35,6 @@ public class DefaultWagonManagerTest
Wagon wagon = null;
try
{
wagon = (Wagon) wagonManager.getWagon( "a" );
assertNotNull( wagon );
@ -52,13 +50,6 @@ public class DefaultWagonManagerTest
wagon = (Wagon) wagonManager.getWagon( "c" );
assertNotNull( wagon );
}
catch ( Exception e )
{
e.printStackTrace();
fail( e.getMessage() );
}
try
{