mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
19 lines
805 B
HTML
19 lines
805 B
HTML
<html>
|
|
<body>
|
|
Reports <code>assert</code> messages that are not of the <code>java.lang.String</code> type.
|
|
<p>Using a string provides more information to help diagnose the failure
|
|
or the assertion reason.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
void foo(List<Integer> myList) {
|
|
assert myList.isEmpty() : false;
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
Use the <b>Only warn when the <code>assert</code> message type is 'boolean' or 'java.lang.Boolean'</b> option to only warn when the <code>assert</code> message type is <code>boolean</code> or <code>java.lang.Boolean</code>.
|
|
A <code>boolean</code> detail message is unlikely to provide additional information about an assertion failure
|
|
and could result from a mistakenly entered <code>:</code> instead of <code>&</code>.
|
|
</body>
|
|
</html>
|