String concatenation
Reports String
concatenations. Concatenation might be incorrect in an internationalized environment and could be replaced by usages of java.text.MessageFormat
or similar classes.
Example:
String getMessage(String string, int number) {
return string + number;
}
Inspection options
Option | Type | Default |
---|---|---|
Ignore for assert statement description arguments | Checkbox | false |
Ignore for 'System.out.print' arguments | Checkbox | false |
Ignore for 'System.err.print' arguments | Checkbox | false |
Ignore for constructor arguments of Throwable subclasses | Checkbox | false |
Ignore for initializers of constant fields | Checkbox | false |
Ignore inside toString() methods | Checkbox | false |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023