You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2015/12/26 17:10:51 UTC

svn commit: r1721739 - /sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java

Author: kwin
Date: Sat Dec 26 16:10:51 2015
New Revision: 1721739

URL: http://svn.apache.org/viewvc?rev=1721739&view=rev
Log:
SLING-5403 return List instead of Collection for RankedServices.get

Modified:
    sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java

Modified: sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java?rev=1721739&r1=1721738&r2=1721739&view=diff
==============================================================================
--- sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java (original)
+++ sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java Sat Dec 26 16:10:51 2015
@@ -68,7 +68,7 @@ public final class RankedServices<T> imp
 
   private final ChangeListener changeListener;
   private final SortedMap<Comparable<Object>, T> serviceMap = new TreeMap<Comparable<Object>, T>();
-  private volatile Collection<T> sortedServices = Collections.emptyList();
+  private volatile List<T> sortedServices = Collections.emptyList();
   private final Order order;
 
   /**
@@ -156,7 +156,7 @@ public final class RankedServices<T> imp
    * (either ascending or descending depending on the order given in the constructor).
    * @return Collection of service instances
    */
-  public Collection<T> get() {
+  public List<T> get() {
     return sortedServices;
   }