felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r949049 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/resolver/CandidateComparator.java
Date Fri, 28 May 2010 00:20:33 GMT
Author: gnodet
Date: Fri May 28 00:20:33 2010
New Revision: 949049

URL: http://svn.apache.org/viewvc?rev=949049&view=rev
Log:
Generify CandidateComparator (FELIX-2035)

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/resolver/CandidateComparator.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/resolver/CandidateComparator.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/resolver/CandidateComparator.java?rev=949049&r1=949048&r2=949049&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/resolver/CandidateComparator.java
(original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/resolver/CandidateComparator.java
Fri May 28 00:20:33 2010
@@ -23,13 +23,10 @@ import org.apache.felix.framework.capabi
 import org.osgi.framework.Constants;
 import org.osgi.framework.Version;
 
-public class CandidateComparator implements Comparator
+public class CandidateComparator implements Comparator<Capability>
 {
-    public int compare(Object arg1, Object arg2)
+    public int compare(Capability cap1, Capability cap2)
     {
-        Capability cap1 = (Capability) arg1;
-        Capability cap2 = (Capability) arg2;
-
         // First check resolved state, since resolved capabilities have priority
         // over unresolved ones. Compare in reverse order since we want to sort
         // in descending order.



Mime
View raw message