Change supertype
ProprietaryChanges the supertype of a class, optionally converting from extends to implements.
io. moderne. java. dropwizard. boot. method. ChangeSuperTypeRequired
The fully qualified name of the class whose superclass should be changed.
The fully qualified name of the new superclass to extend or interface to implement.
Optional
keepTypeParametersBoolean
Whether to keep existing type parameters on the target class declaration.
convertToInterfaceBoolean
If the new supertype is an interface, setting this to true converts 'extends' to 'implements'.
removeUnnecessaryOverridesBoolean
Remove method Override annotations that override methods from the old superclass but are no longer necessary with the new superclass.
mod run . --recipe= io. moderne. java. dropwizard. boot. method. ChangeSuperType \
-P targetClass= com. myorg. MyClass \
-P newSuperclass= com. myorg. NewSuperclassInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.