mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
13 lines
390 B
HTML
13 lines
390 B
HTML
<html>
|
|
<body>
|
|
Reports lambda expressions with one callable reference.
|
|
<p>It is a common error to replace a lambda with a callable reference without changing curly braces to parentheses.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code> listOf(1,2,3).map { it::toString }
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:</p>
|
|
<pre><code> listOf(1,2,3).map(Int::toString)
|
|
</code></pre>
|
|
</body>
|
|
</html>
|