JUnit 5 inner test classes should be annotated with @Nested
MSALAdds @Nested to inner classes that contain JUnit 5 tests and removes static from them. Before Java 16 an inner class may not declare static members other than constant variables, so a static nested class that declares any other static member is marked as needing manual migration instead; sources without a known Java version are assumed to support static members.
org. openrewrite. java. testing. junit5. AddMissingNestedmod run . --recipe= org. openrewrite. java. testing. junit5. AddMissingNestedInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.