FELIX-5001 : scr:list Gogo command should display component descriptions and configurations
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1701934 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java b/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
index acf44e6..6c0f58b 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/ScrCommand.java
@@ -296,22 +296,7 @@
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;