blob: ee5c9e66c1f3eeabb3cfe53fb5618f86ac37b202 [file]
<html>
<body>
Reports redundant Stream or Optional calls like <code>map(x -> x)</code> or <code>filter(x -> true)</code>,
redundant <code>sorted</code> or <code>distinct</code>.
<p>Note that a mapping operation in code like <code>streamOfIntegers.map(Integer::valueOf)</code> works as <code>requireNonNull</code>
check:
if stream contains a <code>null</code>, it will throw <code>NullPointerException</code>, thus it's not absolutely redundant. Uncheck the
"Report redundant boxing in Stream.map" checkbox if you don't want such cases to be reported.</p>
<!-- tooltip end -->
<p>This inspection only reports if the language level of the project or module is 8 or higher</p>
<p><small>New in 2017.1</small></p>
</body>
</html>