mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
16 lines
590 B
HTML
16 lines
590 B
HTML
<html>
|
|
<body>
|
|
Reports bitwise mask expressions which are guaranteed to
|
|
evaluate to <code>true</code> or <code>false</code>.
|
|
<p>
|
|
The inspection checks the expressions of the form <code>(var & constant1) == constant2</code> or
|
|
<code>(var | constant1) == constant2</code>, where <code>constant1</code>
|
|
and <code>constant2</code> are incompatible bitmask constants.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code> // Incompatible mask: as the mask ends in 00,
|
|
// the result could be 0x1200 but not 0x1234
|
|
if ((mask & 0xFF00) == 0x1234) {...}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |