Transform classes that extend *ListenerSupport to implement the *Listener interfaces instead

MSAL

As of 5.0 *Listener interfaces default methods (made possible by a Java 8 baseline) can be implemented directly without the need for the adapter.

org.openrewrite.java.spring.batch.ListenerSupportClassToInterface
mod run . --recipe=org.openrewrite.java.spring.batch.ListenerSupportClassToInterface

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

Recipe list

It runs these recipes, in this order.

  1. Transform classes that extend a given class to implement the given interface instead
  2. Transform classes that extend a given class to implement the given interface instead
  3. Transform classes that extend a given class to implement the given interface instead
  4. Transform classes that extend a given class to implement the given interface instead
  5. Transform classes that extend a given class to implement the given interface instead