From 6952e5a90e3ea6ef6b746ff5240b64339c8c4737 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Tue, 17 Mar 2009 16:14:27 +0000 Subject: [PATCH] warnings in RSS git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755297 13f79535-47bb-0310-9956-ffa450edef68 --- .../rss/processor/NewVersionsOfArtifactRssFeedProcessor.java | 4 ---- .../java/org/apache/archiva/rss/RssFeedGeneratorTest.java | 1 + .../rss/processor/NewArtifactsRssFeedProcessorTest.java | 1 + .../processor/NewVersionsOfArtifactRssFeedProcessorTest.java | 1 + .../java/org/apache/archiva/rss/stubs/ArtifactDAOStub.java | 2 +- 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 queryArtifacts( Constraint constraint ) throws ObjectNotFoundException, ArchivaDatabaseException { return artifacts; -- 2.39.5