Improve extensibility.
[gpl/argeo-suite.git] / org.argeo.suite.core / src / org / argeo / suite / RankedObject.java
index a4d28330481fa7d23583d31adc11556a0b9f8d6b..f0165af75f3905a88a2580e6ddd37caae0df72ea 100644 (file)
@@ -34,7 +34,7 @@ public class RankedObject<T> {
                if (properties == null)
                        return 0l;
                if (properties.containsKey(SERVICE_RANKING))
-                       return ((Integer) properties.get(SERVICE_RANKING)).longValue();
+                       return Long.valueOf(properties.get(SERVICE_RANKING).toString());
 //             else if (properties.containsKey(SERVICE_ID))
 //                     return (Long) properties.get(SERVICE_ID);
                else