Inspectopedia 2025.3 Help

Unstable API Usage

Reports usages of an API marked with one of the annotations as unstable. Such an API may be changed or removed in future versions, breaking the code that uses it.

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

UnstableApiUsage
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | JVM languages

The annotations which are used to mark unstable APIs are shown in the list below.

By default, the inspection ignores usages of unstable APIs if their declarations are located in sources of the same project. In such cases it'll be possible to update the usages when you change APIs. However, it may be inconvenient if the project is big, so one can switch off the Ignore API declared in this project option to report the usages of unstable APIs declared in both the project sources and libraries.

Inspection ID: UnstableApiUsage

Inspection options

Here you can find the description of settings available for the Unstable API Usage inspection, and the reference of their default values.

Ignore inside imports

Option ID:

myIgnoreInsideImports

Default value:

Selected
Ignore API declared in this project

Option ID:

myIgnoreApiDeclaredInThisProject

Default value:

Selected
Unstable API annotations

Option ID:

unstableApiAnnotations

Default value:

[org.jetbrains.annotations.ApiStatus.ScheduledForRemoval, org.jetbrains.annotations.ApiStatus.Experimental, org.jetbrains.annotations.ApiStatus.Internal, com.google.common.annotations.Beta, io.reactivex.annotations.Beta, io.reactivex.annotations.Experimental, rx.annotations.Experimental, rx.annotations.Beta, org.apache.http.annotation.Beta, org.gradle.api.Incubating]

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection UnstableApiUsage

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

IntelliJ IDEA 2025.3, Qodana for JVM 2025.3,

Last modified: 03 December 2025