Java
Constant expression can be evaluated
Info
New
Last modified: 03 December 2024 Reports constant expressions, whose value can be evaluated statically, and suggests replacing them with their actual values. For example, you will be prompted to replace 2 + 2
with 4
, or Math.sqrt(9.0)
with 3.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.
ConstantExpression
New in 2018.1
Here you can find the description of settings available for the Constant expression can be evaluated 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?