Remove interface implementations

Apache 2.0

Removes implements clauses from classes implementing the specified interface. Removes @Overrides annotations from methods which no longer override anything.

org.openrewrite.java.RemoveImplements

Required

The fully qualified name of the interface to remove.

Optional

Only apply the interface removal to classes with fully qualified names that begin with this filter. null or empty matches all classes.

mod run . --recipe=org.openrewrite.java.RemoveImplements \ -P interfaceType=java.io.Serializable

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