Collect requires of base class as well. This doesn't have any effect since this is covered by other classes, but I noticed this is an oversight.
GITHUB_BREAKING_CHANGES=n/a
@@ -62,6 +62,9 @@ public abstract class ClassExpression extends Expression {
@Override
public void collectRequires(RequiresCollector collector) {
+ if (baseClass() != null) {
+ baseClass().collectRequires(collector);
+ }
for (MethodDeclaration method : methods()) {
method.collectRequires(collector);
}
