You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:25:37 UTC

[sling-org-apache-sling-commons-osgi] 11/19: SLING-5403 return List instead of Collection for RankedServices.get

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.osgi-2.4.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-osgi.git

commit 0d074789cbb5fc65a3df7e2526f50e486aa9b5a1
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Sat Dec 26 16:10:51 2015 +0000

    SLING-5403 return List instead of Collection for RankedServices.get
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/osgi@1721739 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/sling/commons/osgi/RankedServices.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/commons/osgi/RankedServices.java b/src/main/java/org/apache/sling/commons/osgi/RankedServices.java
index 13870f2..0cbfe04 100644
--- a/src/main/java/org/apache/sling/commons/osgi/RankedServices.java
+++ b/src/main/java/org/apache/sling/commons/osgi/RankedServices.java
@@ -68,7 +68,7 @@ public final class RankedServices<T> implements Iterable<T> {
 
   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> implements Iterable<T> {
    * (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;
   }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.