Check whether a type is not in use
Apache 2.0Useful as a precondition to skip over compilation units using the argument type.
org. openrewrite. java. search. DoesNotUseTypeRequired
A fully-qualified type name, that is used to find matching type references. Supports glob expressions. java..* finds every type from every subpackage of the java package.
Optional
includeImplicitBoolean
Whether to include implicit type references, such as those in method signatures.
mod run . --recipe= org. openrewrite. java. search. DoesNotUseType \
-P fullyQualifiedTypeName= java. util. ListInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.