Author: dam...@jb... Date: 2006-06-09 18:23:33 -0400 (Fri, 09 Jun 2006) New Revision: 4712 Modified: labs/shotoku/branches/qa/shotoku-base/src/java/org/jboss/shotoku/search/DateSortParameter.java labs/shotoku/branches/qa/shotoku-feeds/project.xml labs/shotoku/branches/qa/shotoku-feeds/src/java/org/jboss/shotoku/feeds/tag/ShotokuFeedTagHandler.java Log: MERGED: -r 4704:4711 https://svn.labs.jboss.com/labs/shotoku/trunk into qa for Labs 1.1 testing. Modified: labs/shotoku/branches/qa/shotoku-base/src/java/org/jboss/shotoku/search/DateSortParameter.java =================================================================== --- labs/shotoku/branches/qa/shotoku-base/src/java/org/jboss/shotoku/search/DateSortParameter.java 2006-06-09 22:17:59 UTC (rev 4711) +++ labs/shotoku/branches/qa/shotoku-base/src/java/org/jboss/shotoku/search/DateSortParameter.java 2006-06-09 22:23:33 UTC (rev 4712) @@ -32,8 +32,8 @@ public DateSortParameter() { super (new Comparator<Node>() { public int compare(Node o1, Node o2) { - long lastMod1 = o1.getLastModification(); - long lastMod2 = o2.getLastModification(); + long lastMod1 = o1.getCreated(); + long lastMod2 = o2.getCreated(); if (lastMod1 == lastMod2) return 0; Modified: labs/shotoku/branches/qa/shotoku-feeds/project.xml =================================================================== --- labs/shotoku/branches/qa/shotoku-feeds/project.xml 2006-06-09 22:17:59 UTC (rev 4711) +++ labs/shotoku/branches/qa/shotoku-feeds/project.xml 2006-06-09 22:23:33 UTC (rev 4712) @@ -53,7 +53,7 @@ <dependency> <groupId>rome</groupId> <artifactId>rome</artifactId> - <version>0.8</version> + <version>0.5</version> <properties> <war.bundle>true</war.bundle> </properties> Modified: labs/shotoku/branches/qa/shotoku-feeds/src/java/org/jboss/shotoku/feeds/tag/ShotokuFeedTagHandler.java =================================================================== --- labs/shotoku/branches/qa/shotoku-feeds/src/java/org/jboss/shotoku/feeds/tag/ShotokuFeedTagHandler.java 2006-06-09 22:17:59 UTC (rev 4711) +++ labs/shotoku/branches/qa/shotoku-feeds/src/java/org/jboss/shotoku/feeds/tag/ShotokuFeedTagHandler.java 2006-06-09 22:23:33 UTC (rev 4712) @@ -148,11 +148,8 @@ // Calculating the age of the youngest node and putting it into the context. long youngestNode = 0; - for (org.jboss.shotoku.Node n : list) { - long nodeCreated = n.getCreated(); - if (nodeCreated > youngestNode) { - youngestNode = nodeCreated; - } + if (list.size() > 0) { + youngestNode = list.iterator().next().getCreated(); } vc.put(searchNameAttr + "Youngest", new Date(youngestNode)); |