[CXF-8766]avoid NPE warning message by removing tryOSGI
@@ -152,9 +152,10 @@ public class SpringBeanLocator implements ConfiguredBeanLocator {
lst.add(type.cast(context.getBean(n, type)));
}
lst.addAll(orig.getBeansOfType(type));
- if (lst.isEmpty()) {
+ //TODO: [OSGi+Jakarta] Uncomment this when osgi comes back
+ /*if (lst.isEmpty()) {
tryOSGI(lst, type);
- }
+ }*/
return lst;
}
private <T> void tryOSGI(Collection<T> lst, Class<T> type) {
