Back to Intellij Community

StringConcatenationMissingWhitespace

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

2025.3-rc-2418 B
Original Source

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.