Java
Constant call to 'Math'
Warning
New
Last modified: 03 December 2024 Reports calls to java.lang.Math
or java.lang.StrictMath
methods that can be replaced with simple compile-time constants.
Example:
double v = Math.sin(0.0);
After the quick-fix is applied:
double v = 0.0;
- 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.
ConstantMathCall
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?