[Converter] Apply a fix from the Felix codebase.
Interfaces without methods that extend interfaces with methods were
previously not detected as suitable interface types for conversion to
maps. This is now fixed.
@@ -1154,8 +1154,9 @@ class ConvertingImpl extends AbstractSpecifying<Converting>
Set<Class< ? >> classes = new LinkedHashSet<>();
if (cls.isInterface()) {
classes.add(cls);
- } else {
- classes.addAll(Arrays.asList(cls.getInterfaces()));
+ }
+ for (Class< ? > intf : cls.getInterfaces()) {
+ classes.addAll(getInterfaces(intf));
}
classes.addAll(getInterfaces(cls.getSuperclass()));
