mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
22 lines
667 B
HTML
22 lines
667 B
HTML
<html>
|
|
<body>
|
|
Reports lambda parameters named identically to a field of a surrounding class.
|
|
As a result of such naming, you may accidentally use the lambda parameter when using the identically named field is intended.
|
|
<p>A quick-fix is suggested to rename the lambda parameter.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
public class MyClass {
|
|
public Object foo;
|
|
|
|
void sort(List<Integer> list) {
|
|
list.sort((foo, bar) -> foo - bar);
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
Use the option to choose whether to ignore fields that are not visible from the lambda expression.
|
|
For example, private fields of a superclass.
|
|
<p>
|
|
</body>
|
|
</html> |