mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
lambda -> method ref: ensure that capture is checked according to the param ref; avoid wildcards in method ref qualifiers (IDEA-139529)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
import java.util.function.Function;
|
||||
class Bar {
|
||||
Function<Class<?> , String> s = Class::getCanonicalName;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
import java.util.function.Function;
|
||||
class Bar {
|
||||
Function<Class<?> , String> s = (c) -> c.getCanonica<caret>lName();
|
||||
}
|
||||
Reference in New Issue
Block a user