felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1701934 - /felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
Date Wed, 09 Sep 2015 07:48:12 GMT
Author: cziegeler
Date: Wed Sep  9 07:48:11 2015
New Revision: 1701934

URL: http://svn.apache.org/r1701934
Log:
FELIX-5001 : scr:list Gogo command should display component descriptions and configurations

Modified:
    felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java

Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java?rev=1701934&r1=1701933&r2=1701934&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java (original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java Wed Sep  9 07:48:11
2015
@@ -296,22 +296,7 @@ public class ScrCommand implements ScrIn
             return;
         }
 
-        Collections.sort( new ArrayList<ComponentDescriptionDTO>(result.components),
new Comparator<ComponentDescriptionDTO>()
-                {
-
-                    public int compare(final ComponentDescriptionDTO c1, final ComponentDescriptionDTO
c2)
-                    {
-                        final long bundleId1 = c1.bundle.id;
-                        final long bundleId2 = c2.bundle.id;
-                        int result = Long.signum(bundleId1 - bundleId2);
-                        if ( result == 0)
-                        {
-                            result = c1.name.compareTo(c2.name);
-                        }
-                        return result;
-                    }
-
-                });
+        Collections.sort( new ArrayList<ComponentDescriptionDTO>(result.components),
DESCRIPTION_COMP);
 
         long bundleId = -1;
 



Mime
View raw message