Multiple operators with different precedence
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;
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023