Files
openide/java/java-impl/resources/inspectionDescriptions/ConditionCoveredByFurtherCondition.html
2025-02-05 04:43:28 +00:00

11 lines
502 B
HTML

<html>
<body>
Reports conditions that become redundant as they are completely covered by a subsequent condition.
<p>For example, in the <code>value != -1 && value > 0</code> condition, the first part is redundant:
if it's false, then the second part is also false.
Or in a condition like <code>obj != null && obj instanceof String</code>,
the null-check is redundant as <code>instanceof</code> operator implies non-nullity.</p>
<!-- tooltip end -->
<p><small>New in 2018.3</small></p>
</body>
</html>