mirror of https://github.com/apache/archiva.git
remove non needed parameters
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1343831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d91a07b77b
commit
b310f597df
|
@ -176,7 +176,7 @@ public abstract class AbstractRestService
|
|||
* @param artifact
|
||||
* @return
|
||||
*/
|
||||
protected String getArtifactUrl( Artifact artifact, String version )
|
||||
protected String getArtifactUrl( Artifact artifact )
|
||||
throws ArchivaRestServiceException
|
||||
{
|
||||
try
|
||||
|
|
|
@ -688,7 +688,7 @@ public class DefaultBrowseService
|
|||
repositoryContentFactory.getManagedRepositoryContent( repoId ) );
|
||||
Artifact art = builder.build();
|
||||
|
||||
art.setUrl( getArtifactUrl( art, version ) );
|
||||
art.setUrl( getArtifactUrl( art ) );
|
||||
artifactDownloadInfos.add( art );
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ package org.apache.archiva.rest.services;
|
|||
*/
|
||||
|
||||
import net.sf.beanlib.provider.replicator.BeanReplicator;
|
||||
import org.apache.archiva.admin.model.RepositoryAdminException;
|
||||
import org.apache.archiva.indexer.search.RepositorySearch;
|
||||
import org.apache.archiva.indexer.search.RepositorySearchException;
|
||||
import org.apache.archiva.indexer.search.SearchFields;
|
||||
|
@ -39,7 +38,6 @@ import org.apache.commons.lang.StringUtils;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import javax.ws.rs.core.Response;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
@ -225,7 +223,7 @@ public class DefaultSearchService
|
|||
if ( StringUtils.isNotBlank( version ) )
|
||||
{
|
||||
versionned.setVersion( version );
|
||||
versionned.setUrl( getArtifactUrl( versionned, version ) );
|
||||
versionned.setUrl( getArtifactUrl( versionned ) );
|
||||
|
||||
artifacts.add( versionned );
|
||||
|
||||
|
@ -237,6 +235,4 @@ public class DefaultSearchService
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue