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.


void setTitle(@NlsContexts.DialogTitle String title) {} setTitle("This is sentence capitalization but should be title");

After the quick-fix is applied:

setTitle("This Is Sentence Capitalization but Should Be Title");

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java Internationalization, 233.SNAPSHOT

Last modified: 13 July 2023