]> source.dussan.org Git - archiva.git/commitdiff
clean up warnings in xmlrpc modules
authorBrett Porter <brett@apache.org>
Tue, 17 Mar 2009 17:01:40 +0000 (17:01 +0000)
committerBrett Porter <brett@apache.org>
Tue, 17 Mar 2009 17:01:40 +0000 (17:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755322 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-api/src/main/java/org/apache/archiva/web/xmlrpc/api/beans/ManagedRepository.java
archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-api/src/main/java/org/apache/archiva/web/xmlrpc/api/beans/RemoteRepository.java
archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/test/java/org/apache/archiva/xmlrpc/security/XmlRpcAuthenticatorTest.java
archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImpl.java
archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/test/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImplTest.java

index fd0f9ef4fd3c07557cd3f92dfb2f645ab508127f..ad36b140f22babf0d5ae9f506f4748dc49eac6be 100644 (file)
@@ -96,7 +96,6 @@ public class ManagedRepository
     public int hashCode()
     {
         int result = 17;
-        long tmp;
         result = 37 * result + ( id != null ? id.hashCode() : 0 );
         return result;
     } 
index 399b59e574c531d6b64ebc10ed87ab288b052c01..a15a8a679dfc68c8375c7484227ea7bbacd721ae 100644 (file)
@@ -90,7 +90,6 @@ public class RemoteRepository
     public int hashCode()
     {
         int result = 17;
-        long tmp;
         result = 37 * result + ( id != null ? id.hashCode() : 0 );
         return result;
     }
index 4830674f2206f520496bf8510b341018233d3af0..3caa68c4b546a5e0520ec137b956c5986ca483e2 100644 (file)
@@ -177,6 +177,7 @@ public class XmlRpcAuthenticatorTest
         configControl.replay();\r
         \r
         boolean isAuthorized = authenticator.isAuthorized( xmlRpcRequest );\r
+        assertTrue( isAuthorized );\r
         \r
         xmlRpcRequestControl.verify();\r
         configControl.verify();\r
index da5714d4a139be213dd4cab39aab852c72b0f546..b0654dfbbe31471bc10024cc1fd38803b5317f25 100644 (file)
@@ -156,7 +156,6 @@ public class SearchServiceImpl
         final List<String> observableRepos = xmlRpcUserRepositories.getObservableRepositories();
         
         final BrowsingResults results = repoBrowsing.selectArtifactId( "", observableRepos, groupId, artifactId );
-        final ArtifactDAO artifactDAO = archivaDAO.getArtifactDAO();
         
         for( final String version : results.getVersions() )
         {
index bf9598bfc11aa41d768d8f5e9e6e506d1ec54d9f..8b7880aea48cbb03aa0d040b2e2d656c050ab988 100644 (file)
@@ -25,10 +25,6 @@ import java.util.Date;
 import java.util.List;
 
 import org.apache.archiva.indexer.search.RepositorySearch;
-import org.apache.archiva.indexer.search.SearchResultHit;
-import org.apache.archiva.indexer.search.SearchResultLimits;
-import org.apache.archiva.indexer.search.SearchResults;
-import org.apache.archiva.indexer.util.SearchUtil;
 import org.apache.archiva.web.xmlrpc.api.SearchService;
 import org.apache.archiva.web.xmlrpc.api.beans.Artifact;
 import org.apache.archiva.web.xmlrpc.api.beans.Dependency;
@@ -379,7 +375,7 @@ public class SearchServiceImplTest
         
         try
         {
-            List<Dependency> dependencies = searchService.getDependencies( "org.apache.archiva", "archiva-test", "1.0" );
+            searchService.getDependencies( "org.apache.archiva", "archiva-test", "1.0" );
             fail( "An exception should have been thrown." );
         }
         catch ( Exception e )
@@ -415,7 +411,7 @@ public class SearchServiceImplTest
         observableRepoIds.add( "repo1.mirror" );
         observableRepoIds.add( "public.releases" );
         
-        List dependeeModels = new ArrayList();
+        List<ArchivaProjectModel> dependeeModels = new ArrayList<ArchivaProjectModel>();
         ArchivaProjectModel dependeeModel = new ArchivaProjectModel();
         dependeeModel.setGroupId( "org.apache.archiva" );
         dependeeModel.setArtifactId( "archiva-dependee-one" );