Fix FELIX-4432
DefaultServiceRankingInterceptor holds duplicate dependencies

Change the dependencies field to be a 'set' instead of a 'list'

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1571287 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/dependency/interceptors/DefaultDependencyInterceptor.java b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/dependency/interceptors/DefaultDependencyInterceptor.java
index 96553fe..68bcc7e 100644
--- a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/dependency/interceptors/DefaultDependencyInterceptor.java
+++ b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/dependency/interceptors/DefaultDependencyInterceptor.java
@@ -21,8 +21,8 @@
 
 import org.apache.felix.ipojo.util.DependencyModel;
 
-import java.util.ArrayList;
-import java.util.List;
+import java.util.LinkedHashSet;
+import java.util.Set;
 
 /**
  * A default implementation of the dependency interceptor.
@@ -34,7 +34,7 @@
      * The set of managed dependencies.
      * Access must be guarded by the monitor lock.
      */
-    protected final List<DependencyModel> dependencies = new ArrayList<DependencyModel>();
+    protected final Set<DependencyModel> dependencies = new LinkedHashSet<DependencyModel>();
 
 
     /**