You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/07/30 16:29:31 UTC

git commit: CAMEL-6436: Fixed rss feed to include feeds with same pubtimestamp.

Updated Branches:
  refs/heads/camel-2.11.x 14a73886d -> 9e6a1d521


CAMEL-6436: Fixed rss feed to include feeds with same pubtimestamp.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9e6a1d52
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9e6a1d52
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9e6a1d52

Branch: refs/heads/camel-2.11.x
Commit: 9e6a1d52151ad96f75b5c43409998e5a9e67249b
Parents: 14a7388
Author: Claus Ibsen <da...@apache.org>
Authored: Tue Jul 30 12:20:23 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Tue Jul 30 16:29:19 2013 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/component/atom/UpdatedDateFilter.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9e6a1d52/components/camel-atom/src/main/java/org/apache/camel/component/atom/UpdatedDateFilter.java
----------------------------------------------------------------------
diff --git a/components/camel-atom/src/main/java/org/apache/camel/component/atom/UpdatedDateFilter.java b/components/camel-atom/src/main/java/org/apache/camel/component/atom/UpdatedDateFilter.java
index 2d5fbb9..547b5ff 100644
--- a/components/camel-atom/src/main/java/org/apache/camel/component/atom/UpdatedDateFilter.java
+++ b/components/camel-atom/src/main/java/org/apache/camel/component/atom/UpdatedDateFilter.java
@@ -41,7 +41,8 @@ public class UpdatedDateFilter implements EntryFilter {
 
     public boolean isValidEntry(FeedEndpoint endpoint, Object feed, Object entry) {        
         Date updated = ((Entry)entry).getUpdated();
-        if (updated == null) { // never been updated so get published date
+        if (updated == null) {
+            // never been updated so get published date
             updated = ((Entry)entry).getPublished();
         }        
         if (updated == null) {
@@ -49,7 +50,7 @@ public class UpdatedDateFilter implements EntryFilter {
             return true;
         }        
         if (lastUpdate != null) {
-            if (lastUpdate.after(updated) || lastUpdate.equals(updated)) {
+            if (lastUpdate.after(updated)) {
                 LOG.debug("Entry is older than lastupdate=[{}], no valid entry=[{}]", lastUpdate, entry);
                 return false;
             }