mirror of https://github.com/apache/maven.git
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:
parent
cdd2cd212a
commit
73576d5bec
|
@ -18,7 +18,6 @@ package org.apache.maven.artifact.deployer;
|
||||||
|
|
||||||
import org.apache.maven.artifact.Artifact;
|
import org.apache.maven.artifact.Artifact;
|
||||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
package org.apache.maven.artifact.handler;
|
package org.apache.maven.artifact.handler;
|
||||||
|
|
||||||
import org.apache.maven.artifact.Artifact;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001-2004 The Apache Software Foundation.
|
* Copyright 2001-2004 The Apache Software Foundation.
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,10 +16,6 @@ package org.apache.maven.artifact.handler;
|
||||||
* limitations under the License.
|
* 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>
|
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
|
|
|
@ -16,10 +16,6 @@ package org.apache.maven.artifact.handler;
|
||||||
* limitations under the License.
|
* 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>
|
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
|
|
|
@ -16,10 +16,6 @@ package org.apache.maven.artifact.handler;
|
||||||
* limitations under the License.
|
* 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
|
* @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>
|
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
|
||||||
|
|
|
@ -18,7 +18,6 @@ package org.apache.maven.artifact.installer;
|
||||||
|
|
||||||
import org.apache.maven.artifact.Artifact;
|
import org.apache.maven.artifact.Artifact;
|
||||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ package org.apache.maven.artifact.repository;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.wagon.repository.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
|
* This class is an abstraction of the location from/to resources
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
package org.apache.maven.artifact.request;
|
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.
|
* Copyright 2001-2004 The Apache Software Foundation.
|
||||||
*
|
*
|
||||||
|
@ -23,6 +16,12 @@ import java.util.Set;
|
||||||
* limitations under the License.
|
* 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>
|
* @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class DefaultArtifactResolver
|
||||||
return artifact;
|
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 )
|
private String artifactNotFound( Artifact artifact, Set remoteRepositories )
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,9 +16,8 @@ package org.apache.maven.artifact.installer;
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.artifact.ArtifactComponentTestCase;
|
|
||||||
import org.apache.maven.artifact.Artifact;
|
import org.apache.maven.artifact.Artifact;
|
||||||
import org.apache.maven.artifact.DefaultArtifact;
|
import org.apache.maven.artifact.ArtifactComponentTestCase;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
|
|
|
@ -35,8 +35,6 @@ public class DefaultWagonManagerTest
|
||||||
|
|
||||||
Wagon wagon = null;
|
Wagon wagon = null;
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
wagon = (Wagon) wagonManager.getWagon( "a" );
|
wagon = (Wagon) wagonManager.getWagon( "a" );
|
||||||
|
|
||||||
assertNotNull( wagon );
|
assertNotNull( wagon );
|
||||||
|
@ -52,13 +50,6 @@ public class DefaultWagonManagerTest
|
||||||
wagon = (Wagon) wagonManager.getWagon( "c" );
|
wagon = (Wagon) wagonManager.getWagon( "c" );
|
||||||
|
|
||||||
assertNotNull( wagon );
|
assertNotNull( wagon );
|
||||||
}
|
|
||||||
catch ( Exception e )
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
|
||||||
|
|
||||||
fail( e.getMessage() );
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue