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
|
* @param artifact
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
protected String getArtifactUrl( Artifact artifact, String version )
|
protected String getArtifactUrl( Artifact artifact )
|
||||||
throws ArchivaRestServiceException
|
throws ArchivaRestServiceException
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
@ -688,7 +688,7 @@ public class DefaultBrowseService
|
||||||
repositoryContentFactory.getManagedRepositoryContent( repoId ) );
|
repositoryContentFactory.getManagedRepositoryContent( repoId ) );
|
||||||
Artifact art = builder.build();
|
Artifact art = builder.build();
|
||||||
|
|
||||||
art.setUrl( getArtifactUrl( art, version ) );
|
art.setUrl( getArtifactUrl( art ) );
|
||||||
artifactDownloadInfos.add( art );
|
artifactDownloadInfos.add( art );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ package org.apache.archiva.rest.services;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import net.sf.beanlib.provider.replicator.BeanReplicator;
|
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.RepositorySearch;
|
||||||
import org.apache.archiva.indexer.search.RepositorySearchException;
|
import org.apache.archiva.indexer.search.RepositorySearchException;
|
||||||
import org.apache.archiva.indexer.search.SearchFields;
|
import org.apache.archiva.indexer.search.SearchFields;
|
||||||
|
@ -39,7 +38,6 @@ import org.apache.commons.lang.StringUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -225,7 +223,7 @@ public class DefaultSearchService
|
||||||
if ( StringUtils.isNotBlank( version ) )
|
if ( StringUtils.isNotBlank( version ) )
|
||||||
{
|
{
|
||||||
versionned.setVersion( version );
|
versionned.setVersion( version );
|
||||||
versionned.setUrl( getArtifactUrl( versionned, version ) );
|
versionned.setUrl( getArtifactUrl( versionned ) );
|
||||||
|
|
||||||
artifacts.add( versionned );
|
artifacts.add( versionned );
|
||||||
|
|
||||||
|
@ -237,6 +235,4 @@ public class DefaultSearchService
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue