mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-27 06:36:17 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
17 lines
548 B
HTML
17 lines
548 B
HTML
<html>
|
|
<body>
|
|
Reports if a null-checking method (for example, <code>Objects.requireNonNull</code> or <code>Assert.assertNotNull</code>) is
|
|
called on a value that is obviously non-null (for example, a newly created object). Such a check is redundant and may indicate
|
|
a programming error.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
final String greeting = Objects.requireNonNull("Hi!");
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
final String greeting = "Hi!";
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>New in 2017.2</p>
|
|
</body>
|
|
</html> |