Find methods with empty bodies

Apache 2.0

Find methods with empty bodies and single public no arg constructors.

org.openrewrite.java.search.FindEmptyMethods

Optional

matchOverridesBoolean

When enabled, find methods that are overrides of the method pattern.

mod run . --recipe=org.openrewrite.java.search.FindEmptyMethods

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.