Files
openide/java/java-impl/resources/inspectionDescriptions/NegativelyNamedBooleanVariable.html
2025-02-05 04:43:28 +00:00

12 lines
383 B
HTML

<html>
<body>
Reports negatively named variables, for example: <code>disabled</code>, <code>hidden</code>, or <code>isNotChanged</code>.
<p>Usually, inverting the <code>boolean</code> value and removing the negation from the name makes the code easier to understand.</p>
<p>Example:</p>
<pre><code>
boolean disabled = false;
</code></pre>
<!-- tooltip end -->
<p>
</body>
</html>