Remove elements annotated with @ToBeRemoved past their date

MSAL

Removes class, method and variable declarations annotated with org.openrewrite.internal.ToBeRemoved whose after date has passed. This does not remove invocations or references to such methods or variables. Those must be handled separately, e.g. with org.openrewrite.java.InlineMethodCalls.

org.openrewrite.java.recipes.RemoveToBeRemoved
mod run . --recipe=org.openrewrite.java.recipes.RemoveToBeRemoved

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