You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2015/09/09 09:48:12 UTC

svn commit: r1701934 - /felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java

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;