mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Optimize DefaultPicoContainer for test. (Fix test)
This commit is contained in:
@@ -352,7 +352,7 @@ public class DefaultPicoContainer implements MutablePicoContainer, Serializable
|
||||
private final ConcurrentHashMap<T, T> concurrentSet = new ConcurrentHashMap<T, T>();
|
||||
|
||||
public boolean contains(@Nullable T element) {
|
||||
return element != null || concurrentSet.containsKey(element);
|
||||
return element != null && concurrentSet.containsKey(element);
|
||||
}
|
||||
|
||||
public void add(@NotNull T element) {
|
||||
|
||||
Reference in New Issue
Block a user