mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 14:01:44 +07:00
LambdaCanBeMethodReferenceInspection: fix EA-140341 CCE; cleanup
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
class Bar extends Random {
|
||||
public void test(Object obj) {
|
||||
Runnable r = ((String) obj)::trim;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
class Bar extends Random {
|
||||
public void test(Object obj) {
|
||||
Runnable r = () -> <caret>((String)obj).trim();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user