Browse Source

clean up warnings


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755287 13f79535-47bb-0310-9956-ffa450edef68
tags/archiva-1.2
Brett Porter 15 years ago
parent
commit
ad7be3a3fc

+ 4
- 5
archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/PropagateErrorsDownloadPolicy.java View File

* under the License. * under the License.
*/ */


import org.apache.commons.lang.StringUtils;
import org.codehaus.plexus.logging.AbstractLogEnabled;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Properties; import java.util.Properties;


import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/** /**
* PropagateErrorsPolicy - a policy applied on error to determine how to treat the error. * PropagateErrorsPolicy - a policy applied on error to determine how to treat the error.
* *

+ 1
- 0
archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/AbstractProxyTestCase.java View File

assertNull( "Found file: " + downloadedFile + "; but was expecting a failure", downloadedFile ); assertNull( "Found file: " + downloadedFile + "; but was expecting a failure", downloadedFile );
} }


@SuppressWarnings("unchecked")
protected void assertNoTempFiles( File expectedFile ) protected void assertNoTempFiles( File expectedFile )
{ {
File workingDir = expectedFile.getParentFile(); File workingDir = expectedFile.getParentFile();

+ 2
- 0
archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/WagonDelegate.java View File

return delegate.resourceExists( resourceName ); return delegate.resourceExists( resourceName );
} }


@SuppressWarnings("unchecked")
public List<String> getFileList( String destinationDirectory ) public List<String> getFileList( String destinationDirectory )
throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
{ {
delegate.connect( source, authenticationInfo, proxyInfoProvider ); delegate.connect( source, authenticationInfo, proxyInfoProvider );
} }


@SuppressWarnings("deprecation")
public void openConnection() public void openConnection()
throws ConnectionException, AuthenticationException throws ConnectionException, AuthenticationException
{ {

+ 3
- 2
archiva-modules/archiva-reporting/archiva-project-reports/src/main/java/org/apache/maven/archiva/reporting/project/MissingDependenciesReport.java View File

import org.apache.maven.archiva.database.Constraint; import org.apache.maven.archiva.database.Constraint;
import org.apache.maven.archiva.database.ObjectNotFoundException; import org.apache.maven.archiva.database.ObjectNotFoundException;
import org.apache.maven.archiva.database.constraints.RepositoryProblemByTypeConstraint; import org.apache.maven.archiva.database.constraints.RepositoryProblemByTypeConstraint;
import org.apache.maven.archiva.model.RepositoryProblem;
import org.apache.maven.archiva.reporting.DataLimits; import org.apache.maven.archiva.reporting.DataLimits;
import org.apache.maven.archiva.reporting.DynamicReportSource; import org.apache.maven.archiva.reporting.DynamicReportSource;


constraint = new RepositoryProblemByTypeConstraint( PROBLEM_TYPE_MISSING_DEPENDENCY ); constraint = new RepositoryProblemByTypeConstraint( PROBLEM_TYPE_MISSING_DEPENDENCY );
} }


public List getData()
public List<RepositoryProblem> getData()
throws ObjectNotFoundException, ArchivaDatabaseException throws ObjectNotFoundException, ArchivaDatabaseException
{ {
return dao.getRepositoryProblemDAO().queryRepositoryProblems( constraint ); return dao.getRepositoryProblemDAO().queryRepositoryProblems( constraint );
} }


public List getData( DataLimits limits )
public List<RepositoryProblem> getData( DataLimits limits )
throws ObjectNotFoundException, ArchivaDatabaseException throws ObjectNotFoundException, ArchivaDatabaseException
{ {
// TODO: implement limits. // TODO: implement limits.

+ 3
- 3
archiva-modules/archiva-reporting/archiva-project-reports/src/main/java/org/apache/maven/archiva/reporting/project/ProjectDependenciesConsumer.java View File

*/ */
private String description; private String description;


private List includes;
private List<String> includes;


public ProjectDependenciesConsumer() public ProjectDependenciesConsumer()
{ {
this.includes = new ArrayList();
this.includes = new ArrayList<String>();
this.includes.add( "pom" ); this.includes.add( "pom" );
} }


/* do nothing */ /* do nothing */
} }


public List getIncludedTypes()
public List<String> getIncludedTypes()
{ {
return includes; return includes;
} }

Loading…
Cancel
Save