lambda -> meth ref: accept receiver only for calls on lambda params (IDEA-138593)

This commit is contained in:
Anna Kozlova
2015-04-01 14:54:18 +02:00
parent e2bb7b8eb1
commit b8683c3640
3 changed files with 22 additions and 1 deletions

View File

@@ -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);
}
}

View File

@@ -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));
}
}