]> source.dussan.org Git - archiva.git/commitdiff
warnings in RSS
authorBrett Porter <brett@apache.org>
Tue, 17 Mar 2009 16:14:27 +0000 (16:14 +0000)
committerBrett Porter <brett@apache.org>
Tue, 17 Mar 2009 16:14:27 +0000 (16:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755297 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java
archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java
archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java
archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java
archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/stubs/ArtifactDAOStub.java

index d57a580fc94b29ddf262c8cdba1dba0883f2254d..c4c50e84f36ef83df368402bc3a318533a1ae347 100644 (file)
@@ -29,8 +29,6 @@ import org.apache.maven.archiva.database.ArtifactDAO;
 import org.apache.maven.archiva.database.Constraint;
 import org.apache.maven.archiva.database.constraints.ArtifactVersionsConstraint;
 import org.apache.maven.archiva.model.ArchivaArtifact;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import com.sun.syndication.feed.synd.SyndFeed;
 
@@ -54,8 +52,6 @@ public class NewVersionsOfArtifactRssFeedProcessor
      */
     private RssFeedGenerator generator;
 
-    private Logger log = LoggerFactory.getLogger( NewVersionsOfArtifactRssFeedProcessor.class );
-
     /**
      * @plexus.requirement role-hint="jdo"
      */
index 7f6196addcfc074586050e33c617a4aa5131c22b..660a592f7a5dfc6193985d4e2116a56b06493ddc 100644 (file)
@@ -44,6 +44,7 @@ public class RssFeedGeneratorTest
         generator = (RssFeedGenerator) lookup( RssFeedGenerator.class );
     }
 
+    @SuppressWarnings("unchecked")
     public void testNewFeed()
         throws Exception
     {
index b357c6683a7da9d919e7b860347a7583bef7f5d5..c4587e38633a91995faea4fdf1162367725240b5 100644 (file)
@@ -63,6 +63,7 @@ public class NewArtifactsRssFeedProcessorTest
         newArtifactsProcessor.setArtifactDAO( artifactDAOStub );
     }
 
+    @SuppressWarnings("unchecked")
     public void testProcess()
         throws Exception
     {
index 44eca506958cf41f2bd7793c698582c6fbf49806..e1256954b86877ee66c837a3f312aeab2cd1168a 100644 (file)
@@ -60,6 +60,7 @@ public class NewVersionsOfArtifactRssFeedProcessorTest
         newVersionsProcessor.setArtifactDAO( artifactDAOStub );
     }
 
+    @SuppressWarnings("unchecked")
     public void testProcess()
         throws Exception
     {
index 1f936fc3296b2f1f553461ec61391555e957ed2b..9eade4d6511d888d6fa891f6cbeacc8f54d59637 100644 (file)
@@ -59,7 +59,7 @@ public class ArtifactDAOStub
         return null;
     }
 
-    public List queryArtifacts( Constraint constraint )
+    public List<ArchivaArtifact> queryArtifacts( Constraint constraint )
         throws ObjectNotFoundException, ArchivaDatabaseException
     {
         return artifacts;