mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
11 lines
647 B
HTML
11 lines
647 B
HTML
<html>
|
|
<body>
|
|
Reports redundant <code>Stream</code> or <code>Optional</code> calls like <code>map(x -> x)</code>, <code>filter(x -> 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> |