Remove interface implementations
Apache 2.0Removes implements clauses from classes implementing the specified interface. Removes @Overrides annotations from methods which no longer override anything.
org. openrewrite. java. RemoveImplementsRequired
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. SerializableInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.