mirror of https://github.com/apache/archiva.git
clean up warnings in xmlrpc modules
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755322 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f8373b46e0
commit
643ac963f2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -177,6 +177,7 @@ public class XmlRpcAuthenticatorTest
|
|||
configControl.replay();
|
||||
|
||||
boolean isAuthorized = authenticator.isAuthorized( xmlRpcRequest );
|
||||
assertTrue( isAuthorized );
|
||||
|
||||
xmlRpcRequestControl.verify();
|
||||
configControl.verify();
|
||||
|
|
|
@ -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() )
|
||||
{
|
||||
|
|
|
@ -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" );
|
||||
|
|
Loading…
Reference in New Issue