Files
openide/java/java-impl/resources/inspectionDescriptions/BooleanMethodNameMustStartWithQuestion.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

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&lt;String&gt; 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>