mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
17 lines
473 B
HTML
17 lines
473 B
HTML
<html>
|
|
<body>
|
|
Reports if a trivial lambda expression is used in cases in which there's an alternative method that behaves in the same way, but accepts a concrete value
|
|
instead of a lambda.
|
|
<p>This inspection helps simplify the code.</p>
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
Optional.orElseGet(() -> null)
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code>
|
|
Optional.orElse(null)
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p><small>New in 2017.1</small></p>
|
|
</body>
|
|
</html> |