Files
openide/java/java-impl/resources/inspectionDescriptions/RedundantStreamOptionalCall.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

11 lines
647 B
HTML

<html>
<body>
Reports redundant <code>Stream</code> or <code>Optional</code> calls like <code>map(x -&gt; x)</code>, <code>filter(x -&gt; true)</code> or
redundant <code>sorted()</code> or <code>distinct()</code> calls.
<!-- tooltip end -->
<p>Note that a mapping operation in code like <code>streamOfIntegers.map(Integer::valueOf)</code>
works as <code>requireNonNull()</code> check:
if the stream contains <code>null</code>, it throws a <code>NullPointerException</code>, thus it's not absolutely redundant.
Disable the <b>Report redundant boxing in Stream.map()</b> option if you do not want such cases to be reported.</p>
</body>
</html>