| <html> |
| <body> |
| Reports methods with a <b>boolean</b> return type |
| the usages of which always occur in negated context. Since this inspection |
| requires global code analysis, it is only available in batch inspection mode. |
| <p> |
| For example: |
| <code><pre> |
| <b>class</b> C { |
| <b>boolean</b> inverted() { |
| <b>return</b> <b>true</b>; |
| } |
| |
| <b>void</b> f() { |
| <b>if</b> (!inverted()) { |
| <b>return</b>; |
| } |
| } |
| <b>boolean</b> member = !inverted(); |
| } |
| </pre></code> |
| <!-- tooltip end --> |
| <p> |
| <small>Powered by InspectionGadgets</small> |
| </body> |
| </html> |