Rename final method declarations getSuppressed() and addSuppressed(Throwable exception) in classes that extend Throwable
MSALThe recipe renames getSuppressed() and addSuppressed(Throwable exception) methods in classes that extend java.lang.Throwable to myGetSuppressed and myAddSuppressed(Throwable). These methods were added to Throwable in Java 7 and are marked final which cannot be overridden.
org. openrewrite. java. migrate. JREThrowableFinalMethodsOptional
A method pattern matching the addSuppressed(Throwable) declarations and invocations to rename to myAddSuppressed.
A method pattern matching the getSuppressed() declarations and invocations to rename to myGetSuppressed.
mod run . --recipe= org. openrewrite. java. migrate. JREThrowableFinalMethodsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.