felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r704787 - /felix/trunk/dependencymanager.shell/src/main/java/org/apache/felix/dependencymanager/shell/DMCommand.java
Date Wed, 15 Oct 2008 06:13:28 GMT
Author: marrs
Date: Tue Oct 14 23:13:27 2008
New Revision: 704787

URL: http://svn.apache.org/viewvc?rev=704787&view=rev
Log:
Removed a Java 5 method to restore 1.4 compatibility

Modified:
    felix/trunk/dependencymanager.shell/src/main/java/org/apache/felix/dependencymanager/shell/DMCommand.java

Modified: felix/trunk/dependencymanager.shell/src/main/java/org/apache/felix/dependencymanager/shell/DMCommand.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager.shell/src/main/java/org/apache/felix/dependencymanager/shell/DMCommand.java?rev=704787&r1=704786&r2=704787&view=diff
==============================================================================
--- felix/trunk/dependencymanager.shell/src/main/java/org/apache/felix/dependencymanager/shell/DMCommand.java
(original)
+++ felix/trunk/dependencymanager.shell/src/main/java/org/apache/felix/dependencymanager/shell/DMCommand.java
Tue Oct 14 23:13:27 2008
@@ -28,7 +28,9 @@
                     public int compare(Object o1, Object o2) {
                         ServiceReference r1 = (ServiceReference) o1;
                         ServiceReference r2 = (ServiceReference) o2;
-                        return (int) Math.signum(r1.getBundle().getBundleId() - r2.getBundle().getBundleId());
+                        long id1 = r1.getBundle().getBundleId();
+                        long id2 = r2.getBundle().getBundleId();
+                        return id1 > id2 ? 1 : -1;
                     }});
                 for (int i = 0; i < references.length; i++) {
                     ServiceReference ref = references[i];



Mime
View raw message