Find deprecated methods that delegate to their replacement
MSALFinds @Deprecated and @ToBeRemoved methods and constructors outside of tests whose body is a single call to another member of the same class, and that callers in other packages could inline. Lists the InlineMethodCalls step for each, with the imports its replacement needs, and the artifacts that provide their types as classpathFromResources.
org. openrewrite. java. recipes. FindDeprecatedMethodDelegationsmod run . --recipe= org. openrewrite. java. recipes. FindDeprecatedMethodDelegationsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.