]> source.dussan.org Git - archiva.git/commitdiff
remove non needed parameters
authorOlivier Lamy <olamy@apache.org>
Tue, 29 May 2012 16:35:48 +0000 (16:35 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 29 May 2012 16:35:48 +0000 (16:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1343831 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java

index f7aaf895eb0db02b33d115e850120c485f7af945..b95fd1ee37e468afbeaad2c56e7ea2c29b92c9bc 100644 (file)
@@ -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
index 262bae592e1bc5af2b9ade21272750eb91977b22..2ef6db202c3a4a017196497303bf22e9355de406 100644 (file)
@@ -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 );
                 }
 
index b9b1d810d2ef618351ca2fbe461aa6f1ef320623..d33985117dfdaa0a038f728cb53ea14e6303513a 100644 (file)
@@ -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
     }
 
 
-
-
 }