summaryrefslogtreecommitdiffstats
path: root/java/sca/samples
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-08-13 20:11:20 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-08-13 20:11:20 +0000
commit821a7c1828029e31c1e9e55aa6fd42694ac0a072 (patch)
tree344e4711b860b1766bf46121da108f7636fb3a85 /java/sca/samples
parentbd4fbd7058f1285c24481170d10e34c316cd8e7c (diff)
TUSCANY-2458 - Applying Dan's patch to use last updated field as the sorting key
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@685663 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/samples')
-rw-r--r--java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java4
-rw-r--r--java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java b/java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java
index ea7d252ed4..f7ead126a7 100644
--- a/java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java
+++ b/java/sca/samples/feed-aggregator-webapp/src/main/java/feed/SortImpl.java
@@ -42,8 +42,8 @@ public class SortImpl implements Sort {
entriesArray = (Entry[])entries.toArray(entriesArray);
Arrays.sort(entriesArray, new Comparator() {
public int compare(final Object xObj, final Object yObj) {
- Date xDate = ((Entry)xObj).getPublished();
- Date yDate = ((Entry)yObj).getPublished();
+ Date xDate = ((Entry)xObj).getUpdated();
+ Date yDate = ((Entry)yObj).getUpdated();
if (xDate == null)
return -1;
if (newFirst)
diff --git a/java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java b/java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java
index ea7d252ed4..f7ead126a7 100644
--- a/java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java
+++ b/java/sca/samples/feed-aggregator/src/main/java/feed/SortImpl.java
@@ -42,8 +42,8 @@ public class SortImpl implements Sort {
entriesArray = (Entry[])entries.toArray(entriesArray);
Arrays.sort(entriesArray, new Comparator() {
public int compare(final Object xObj, final Object yObj) {
- Date xDate = ((Entry)xObj).getPublished();
- Date yDate = ((Entry)yObj).getPublished();
+ Date xDate = ((Entry)xObj).getUpdated();
+ Date yDate = ((Entry)yObj).getUpdated();
if (xDate == null)
return -1;
if (newFirst)