aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rss
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-03-17 16:14:27 +0000
committerBrett Porter <brett@apache.org>2009-03-17 16:14:27 +0000
commit6952e5a90e3ea6ef6b746ff5240b64339c8c4737 (patch)
tree35af25a4722f1024dc2ffc10f68a80293e0b6e6f /archiva-modules/archiva-web/archiva-rss
parentcba6c6685880d26a39e27df988ad544f77b69f0d (diff)
downloadarchiva-6952e5a90e3ea6ef6b746ff5240b64339c8c4737.tar.gz
archiva-6952e5a90e3ea6ef6b746ff5240b64339c8c4737.zip
warnings in RSS
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@755297 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rss')
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessor.java4
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/RssFeedGeneratorTest.java1
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewArtifactsRssFeedProcessorTest.java1
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/processor/NewVersionsOfArtifactRssFeedProcessorTest.java1
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/test/java/org/apache/archiva/rss/stubs/ArtifactDAOStub.java2
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;