Inspectopedia Help

Invalid property key

Reports invalid arguments that are passed to methods with parameters annotated as @PropertyKey.

These arguments should be valid property keys in corresponding properties files. Also, the inspection verifies that the resourceBundle argument of the @PropertyKey annotation is an existing resource bundle.

Use the quick-fix to create a new property or to select an existing one.


@PropertyKey(resourceBundle = "myBundle") String value = "invalid.key";

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java Internationalization, 233.SNAPSHOT

Last modified: 13 July 2023