Back to Intellij Community

UnresolvedPropertyKey

java/java-impl/resources/inspectionDescriptions/UnresolvedPropertyKey.html

2025.3-rc-2474 B
Original Source

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.

Example:

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