mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
21 lines
897 B
HTML
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> |