mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not try to merge Injection with no InjectionPlace
This commit is contained in:
@@ -410,7 +410,12 @@ public class Configuration extends SimpleModificationTracker implements Persiste
|
||||
}
|
||||
}
|
||||
main: for (BaseInjection other : importingInjections) {
|
||||
final Set<BaseInjection> matchingInjections = JBIterable.of(other.getInjectionPlaces())
|
||||
InjectionPlace[] places = other.getInjectionPlaces();
|
||||
if (places.length == 0) {
|
||||
if (!existingInjections.contains(other)) newInjections.add(other);
|
||||
continue;
|
||||
}
|
||||
final Set<BaseInjection> matchingInjections = JBIterable.of(places)
|
||||
.flatten(o -> JBIterable.from(placeMap.get(o))).toSet();
|
||||
if (matchingInjections.isEmpty()) {
|
||||
newInjections.add(other);
|
||||
|
||||
Reference in New Issue
Block a user