commit | b69b217fffaa6211fc42ab94be74fef4802b111e | [log] [tgz] |
---|---|---|
author | Clement Escoffier <clement@apache.org> | Mon Feb 24 13:48:10 2014 +0000 |
committer | Clement Escoffier <clement@apache.org> | Mon Feb 24 13:48:10 2014 +0000 |
tree | 3f8f3e3c504ad2eecc855bb5fd761a3492430852 | |
parent | 61439266015ef3d052ce6be4a47080b9b363b7de [diff] |
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>(); /**