We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43609bc commit f691931Copy full SHA for f691931
src/main/java/jvm2dts/Main.java
@@ -123,6 +123,6 @@ private static boolean isData(Class<?> clazz) {
123
124
private static boolean isAnnotated(Class<?> cls, Set<String> annotations) {
125
var result = stream(cls.getAnnotations()).anyMatch(a -> annotations.contains(a.annotationType().getName()));
126
- return result || cls.getDeclaringClass() == null || isAnnotated(cls.getDeclaringClass(), annotations);
+ return result || cls.getDeclaringClass() != null && isAnnotated(cls.getDeclaringClass(), annotations);
127
}
128
0 commit comments