Find uses of deprecated classes, methods, and fields

Apache 2.0

Find deprecated uses of methods, fields, and types. Optionally ignore those classes that are inside deprecated scopes.

org.openrewrite.java.search.FindDeprecatedUses

Optional

A type pattern that is used to find deprecations from certain types.

matchInheritedBoolean

When enabled, find types that inherit from a deprecated type.

ignoreDeprecatedScopesBoolean

When a deprecated type is used in a deprecated method or class, ignore it.

mod run . --recipe=org.openrewrite.java.search.FindDeprecatedUses

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. Find uses of deprecated methods
  2. Find uses of deprecated classes
  3. Find uses of deprecated fields