mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
wording
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<body>
|
||||
<p>Reports a <b>null</b> check followed by an <b>instanceof</b> check.
|
||||
Since the <b>instanceof</b> operator always returns <b>false</b> for <b>null</b>,
|
||||
there is no need to also have a <b>null</b> check. </p>
|
||||
there is no need to have an additional <b>null</b> check. </p>
|
||||
<p>Here is an example of a violation: </p>
|
||||
<pre><code> if (x != null && x instanceof String) { ... }</code></pre>
|
||||
<p>The quickfix changes this code to:</p>
|
||||
|
||||
Reference in New Issue
Block a user