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

archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/PropagateErrorsDownloadPolicy.java
archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/AbstractProxyTestCase.java
archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/WagonDelegate.java
archiva-modules/archiva-reporting/archiva-project-reports/src/main/java/org/apache/maven/archiva/reporting/project/MissingDependenciesReport.java
archiva-modules/archiva-reporting/archiva-project-reports/src/main/java/org/apache/maven/archiva/reporting/project/ProjectDependenciesConsumer.java

index 76b688f210a4f309f6c7416f61b09e4cafcaa26e..e21130e6f7595ee43e8a0f6da410244c2ce2a65b 100644 (file)
@@ -19,17 +19,16 @@ package org.apache.maven.archiva.policies;
  * 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.util.ArrayList;
 import java.util.List;
 import java.util.Map;
 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.
  *
index eab69300efed66d0845a29d234cacc1453ea6311..fe57608706fdb016d3b02c69749587aace2aa972 100644 (file)
@@ -200,6 +200,7 @@ public abstract class AbstractProxyTestCase
         assertNull( "Found file: " + downloadedFile + "; but was expecting a failure", downloadedFile );
     }
 
+    @SuppressWarnings("unchecked")
     protected void assertNoTempFiles( File expectedFile )
     {
         File workingDir = expectedFile.getParentFile();
index 94f8727b78da0c99bb64966430408e4802291948..e59fddb4a522f0b0791b11e9d314c70e2f077ade 100644 (file)
@@ -88,6 +88,7 @@ public class WagonDelegate
         return delegate.resourceExists( resourceName );
     }
 
+    @SuppressWarnings("unchecked")
     public List<String> getFileList( String destinationDirectory )
         throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
     {
@@ -150,6 +151,7 @@ public class WagonDelegate
         delegate.connect( source, authenticationInfo, proxyInfoProvider );
     }
 
+    @SuppressWarnings("deprecation")
     public void openConnection()
         throws ConnectionException, AuthenticationException
     {
index 8c160551737e5eaa45cb110dacd971d7142067bf..0cd854c0bec1b99ad99ed597b9ea6156889ce943 100644 (file)
@@ -24,6 +24,7 @@ import org.apache.maven.archiva.database.ArchivaDatabaseException;
 import org.apache.maven.archiva.database.Constraint;
 import org.apache.maven.archiva.database.ObjectNotFoundException;
 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.DynamicReportSource;
 
@@ -59,13 +60,13 @@ public class MissingDependenciesReport
         constraint = new RepositoryProblemByTypeConstraint( PROBLEM_TYPE_MISSING_DEPENDENCY );
     }
 
-    public List getData()
+    public List<RepositoryProblem> getData()
         throws ObjectNotFoundException, ArchivaDatabaseException
     {
         return dao.getRepositoryProblemDAO().queryRepositoryProblems( constraint );
     }
 
-    public List getData( DataLimits limits )
+    public List<RepositoryProblem> getData( DataLimits limits )
         throws ObjectNotFoundException, ArchivaDatabaseException
     {
         // TODO: implement limits.        
index e5da6a2892f3c0895e714c3441831170fdc145f5..9a46dd1d1c5b8f9b70a18ad718599663f4d5acef 100644 (file)
@@ -49,11 +49,11 @@ public class ProjectDependenciesConsumer
      */
     private String description;
 
-    private List includes;
+    private List<String> includes;
 
     public ProjectDependenciesConsumer()
     {
-        this.includes = new ArrayList();
+        this.includes = new ArrayList<String>();
         this.includes.add( "pom" );
     }
 
@@ -82,7 +82,7 @@ public class ProjectDependenciesConsumer
         /* do nothing */
     }
 
-    public List getIncludedTypes()
+    public List<String> getIncludedTypes()
     {
         return includes;
     }