Commit 850bd969 authored by Skylot's avatar Skylot

fix: don't remove synthetic class with inner classes

parent 20b03aa7
......@@ -42,7 +42,8 @@ public class ClassModifier extends AbstractVisitor {
}
if (cls.getAccessFlags().isSynthetic()
&& cls.getFields().isEmpty()
&& cls.getMethods().isEmpty()) {
&& cls.getMethods().isEmpty()
&& cls.getInnerClasses().isEmpty()) {
cls.add(AFlag.DONT_GENERATE);
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment