mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
22 lines
580 B
HTML
22 lines
580 B
HTML
<html>
|
|
<body>
|
|
Reports references to variables that are checked for nullability
|
|
in the condition of an <code>if</code> statement or
|
|
conditional expression but not used inside that
|
|
<code>if</code> statement.
|
|
<p>
|
|
Usually this either means that
|
|
the check is unnecessary or that the variable is not referenced inside the
|
|
<code>if</code> statement by mistake.
|
|
</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
void test(Integer i) {
|
|
if (i != null) { // here 'i' is not used inside 'if' statement
|
|
System.out.println();
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |