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

16 lines
469 B
HTML

<html>
<body>
Reports constant arguments in <code>assertTrue()</code>, <code>assertFalse()</code>,
<code>assertNull()</code>, and <code>assertNotNull()</code> calls.
<p>
Calls to these methods with
constant arguments will either always succeed or always fail.
Such statements can easily be left over after refactoring and are probably not intended.
</p>
<p><b>Example:</b></p>
<pre><code>
assertNotNull("foo");
</code></pre>
<!-- tooltip end -->
</body>
</html>