mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
32 lines
611 B
HTML
32 lines
611 B
HTML
<html>
|
|
<body>
|
|
Reports boolean expressions that can be simplified.
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
void f(boolean foo, boolean bar) {
|
|
boolean b = !(foo ^ bar);
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
void f(boolean foo, boolean bar) {
|
|
boolean b = foo == bar;
|
|
}
|
|
</code></pre>
|
|
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
void f(boolean foo, boolean bar) {
|
|
boolean b = (foo && bar) || !foo;
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
void f(boolean foo, boolean bar) {
|
|
boolean b = !foo || bar;
|
|
}
|
|
</code></pre>
|
|
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |