Back to Intellij Community

UnclearBinaryExpression

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

2025.3-rc-2304 B
Original Source

Reports binary, conditional, or instanceof expressions that consist of different operators without parentheses. Such expressions can be less readable due to different precedence rules of operators.

Example:

int n = 3 + 9 * 8 + 1;

After quick-fix is applied:

int n = 3 + (9 * 8) + 1;