Inspectopedia
 
2024.3

Deprecated API usage

Warning
New
Last modified: 03 December 2024

Reports usages of deprecated classes, fields, and methods. A quick-fix is available to automatically convert the deprecated usage, when the necessary information can be extracted from the Javadoc of the deprecated member.

Example:

After the quick-fix is applied:

By default, the inspection doesn't produce a warning if it's impossible or hard to avoid it. For example, the following code won't be reported:

Configure the inspection:

Use the options to disable this inspection inside deprecated members, overrides of abstract deprecated methods, non-static import statements, methods of deprecated classes, or same top-level classes.