Inspectopedia
 
2024.3

Value-based warnings

Warning
New
Last modified: 03 December 2024

Reports attempts to synchronize on an instance of a value-based class that produce compile-time warnings and raise run-time exceptions starting from Java 16.

For example, java.lang.Double is annotated with jdk.internal.ValueBased, so the following code will produce a compile-time warning:

New in 2021.1