org.openrewrite.staticanalysis.FinalClass
is wrong for nested sub classes
#372
Labels
bug
Something isn't working
org.openrewrite.staticanalysis.FinalClass
works on wrong assumptions. A non-final class with no public constructor can have nested static sub classes, and in that case it cannot be made final.What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
no change
What did you see instead?
final
added to the top level classAre you interested in contributing a fix to OpenRewrite?
Maybe. Have to look for how to get the information that there are nested sub classes.
The text was updated successfully, but these errors were encountered: