Change the superclass of a class

Proprietary

Change the extends clause of a class declaration from one class to another, leaving every other use of the old class, such as a variable, a cast or a parameter, as it is.

io.moderne.java.primefaces.ChangeSuperclass

Required

Fully qualified name of the class to stop extending.

Fully qualified name of the class to extend instead.

mod run . --recipe=io.moderne.java.primefaces.ChangeSuperclass \ -P oldFullyQualifiedTypeName=org.primefaces.component.menu.AbstractMenu \ -P newFullyQualifiedTypeName=org.primefaces.component.menu.AbstractMenuImpl

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