mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
20 lines
994 B
HTML
20 lines
994 B
HTML
<html>
|
|
<body>
|
|
Reports boolean methods whose names do not start with a question
|
|
word.
|
|
<p>Boolean methods that override library methods are ignored by this inspection.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>boolean empty(List<String> list) {
|
|
return list.isEmpty();
|
|
}</code></pre>
|
|
<p>A quick-fix that renames such methods is available only in the editor.</p>
|
|
<!-- tooltip end -->
|
|
<p>Configure the inspection:</p>
|
|
<ul>
|
|
<li>Use the <b>Boolean method name prefixes</b> list to specify acceptable question words to start boolean method names with.</li>
|
|
<li>Use the <b>Ignore methods with 'java.lang.Boolean' return type</b> option to ignore methods with the <code>java.lang.Boolean</code> return type. </li>
|
|
<li>Use the <b>Ignore boolean methods in an @interface</b> option to ignore boolean methods in annotation types (<code>@interface</code>).</li>
|
|
<li>Use the <b>Ignore methods overriding/implementing a super method</b> to ignore methods the have supers.</li>
|
|
</ul>
|
|
</body>
|
|
</html> |