camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject svn commit: r725076 - /activemq/camel/trunk/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java
Date Wed, 10 Dec 2008 13:00:44 GMT
Author: janstey
Date: Wed Dec 10 05:00:44 2008
New Revision: 725076

URL: http://svn.apache.org/viewvc?rev=725076&view=rev
Log:
Code cleanup

Modified:
    activemq/camel/trunk/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java

Modified: activemq/camel/trunk/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java?rev=725076&r1=725075&r2=725076&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java
(original)
+++ activemq/camel/trunk/components/camel-rss/src/test/java/org/apache/camel/component/rss/RssFilterTest.java
Wed Dec 10 05:00:44 2008
@@ -60,8 +60,8 @@
 
     // START SNIPPET: ex2
     public static class FilterBean {
-        public boolean titleContainsCamel(@Body Object body) {
-            SyndEntry firstEntry = (SyndEntry) ((SyndFeed) body).getEntries().get(0);
+        public boolean titleContainsCamel(@Body SyndFeed feed) {
+            SyndEntry firstEntry = (SyndEntry) feed.getEntries().get(0);
             return firstEntry.getTitle().contains("Camel");
         }
     }



Mime
View raw message