Whitespace may be missing in string concatenation
Reports string concatenations with missing whitespaces, that is where the left-hand side ends with a Unicode letter or digit and the right-hand side starts with a Unicode letter or digit.
Example:
String sql = "SELECT column" +
"FROM table";
Use the Ignore concatenations with variable strings option to only report when both the left and right side of the concatenation are literals.
Inspection options
Option | Type | Default |
---|---|---|
Ignore concatenations with variable strings | Checkbox | true |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023