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

21 lines
897 B
HTML

<html>
<body>
Reports non-boolean methods whose names start with a question
word. Such method names may be confusing.
<p>Non-boolean methods that override library methods are ignored by this inspection.</p>
<p><b>Example:</b>
<pre><code>
public void hasName(String name) {
assert names.contains(name);
}
</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 the question words that should be used only for boolean methods.</li>
<li>Use the <b>Ignore methods with 'java.lang.Boolean' return type</b> option to ignore methods with <code>java.lang.Boolean</code> return type.</li>
<li>Use the <b>Ignore methods overriding/implementing a super method</b> option to ignore methods which have supers. </li>
</ul>
</body>
</html>