mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
lambda -> meth ref: accept receiver only for calls on lambda params (IDEA-138593)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
import java.util.List;
|
||||
|
||||
class Test{
|
||||
private void example(List<String> list, String value)
|
||||
{
|
||||
list.stream().filter(value::equals);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
import java.util.List;
|
||||
|
||||
class Test{
|
||||
private void example(List<String> list, String value)
|
||||
{
|
||||
list.stream().filter(listValue -> value.equ<caret>als(listValue));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user