Suppress inspections on assertions helper
This commit adds comments to org.elasticsearch.Assertions that disables
IntelliJ from complaining about using assert with side-effects, and
using constant conditions there as the side-effect with a constant
condition is intentionally employed.
@@ -38,7 +38,9 @@ public final class Assertions {
* If assertions are enabled, the following line will be evaluated and enabled will have the value true, otherwise when assertions
* are disabled enabled will have the value false.
*/
+ // noinspection ConstantConditions,AssertWithSideEffects
assert enabled = true;
+ // noinspection ConstantConditions
ENABLED = enabled;
}
