Inspectopedia Help

Incorrect string capitalization

Reports strings in method parameters and return values annotated with @Nls and having the capitalization parameter to conform to capitalization rules existing in most platform UI guidelines.

Example:

void setTitle(@NlsContexts.DialogTitle String title) {} setTitle("This is sentence capitalization but should be title");
setTitle("This Is Sentence Capitalization but Should Be Title");

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java Internationalization, 241.14841

Last modified: 12 March 2024