Java
Overly complex arithmetic expression
Warning
Last modified: 03 December 2024Reports arithmetic expressions with the excessive number of terms. Such expressions might be hard to understand and might contain errors.
Parameters, field references, and other primary expressions are counted as a term.
Example:
int calc(int a, int b) {
return a + a + a + b + b + b + b; // The line contains 7 terms and will be reported.
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
OverlyComplexArithmeticExpression
Use the field below to specify a number of terms allowed in arithmetic expressions.
Here you can find the description of settings available for the Overly complex arithmetic expression inspection, and the reference of their default values.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?