Inspectopedia Help

Preview Feature warning

Reports usages of Preview Feature APIs, i.e. of a module, package, class, interface, method, constructor, field, or enum constant in the java.* or javax.* namespace annotated with @PreviewFeature.

A preview feature is a new feature of the Java language, Java Virtual Machine, or Java SE API that is fully specified, fully implemented, and is yet impermanent. The notion of a preview feature is defined in JEP 12.

If some piece of code depends on a preview API, it may stop compiling in future JDK versions if the feature is changed or removed.

The inspection only reports if the language level of the project or module is Preview.

New in 2021.1

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.14841

Last modified: 12 March 2024