[Yanel-commits] rev 25731 - public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils

simon at wyona.com simon at wyona.com
Tue Jul 3 14:14:43 CEST 2007


Author: simon
Date: 2007-07-03 14:14:42 +0200 (Tue, 03 Jul 2007)
New Revision: 25731

Modified:
   public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/UpdateInfo.java
Log:
fixed methode getNewestUpdateVersionsOf() it gives now the newest instead of the oldest

Modified: public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/UpdateInfo.java
===================================================================
--- public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/UpdateInfo.java	2007-07-03 12:09:33 UTC (rev 25730)
+++ public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/UpdateInfo.java	2007-07-03 12:14:42 UTC (rev 25731)
@@ -208,7 +208,7 @@
             }
         }
         Collections.sort(selectedUpdateVersions, new UpdateInfoVersionComparator());
-        return (HashMap) selectedUpdateVersions.get(0);
+        return (HashMap) selectedUpdateVersions.get(selectedUpdateVersions.size() - 1);
     }    
 
     /**




More information about the Yanel-commits mailing list