diff options
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rss/src')
5 files changed, 4 insertions, 5 deletions
diff --git a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java index d57a580fc..c4c50e84f 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java +++ b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java @@ -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" */ diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java index 7f6196add..660a592f7 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java +++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java @@ -44,6 +44,7 @@ public class RssFeedGeneratorTest generator = (RssFeedGenerator) lookup( RssFeedGenerator.class ); } + @SuppressWarnings("unchecked") public void testNewFeed() throws Exception { diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java index b357c6683..c4587e386 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java +++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java @@ -63,6 +63,7 @@ public class NewArtifactsRssFeedProcessorTest newArtifactsProcessor.setArtifactDAO( artifactDAOStub ); } + @SuppressWarnings("unchecked") public void testProcess() throws Exception { diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java index 44eca5069..e1256954b 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java +++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java @@ -60,6 +60,7 @@ public class NewVersionsOfArtifactRssFeedProcessorTest newVersionsProcessor.setArtifactDAO( artifactDAOStub ); } + @SuppressWarnings("unchecked") public void testProcess() throws Exception { diff --git a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/stubs/ArtifactDAOStub.java b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/stubs/ArtifactDAOStub.java index 1f936fc32..9eade4d65 100644 --- a/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/stubs/ArtifactDAOStub.java +++ b/archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/stubs/ArtifactDAOStub.java @@ -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; |