mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 17:07:05 +07:00
EA-57951 - AIOOBE: AnonymousCanBeLambdaInspection.getInferredType
anonymous -> lambda on varargs place
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test2 {
|
||||
|
||||
void f(Runnable... rs){}
|
||||
{
|
||||
f(null, () -> {
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test2 {
|
||||
|
||||
void f(Runnable... rs){}
|
||||
{
|
||||
f(null, new Run<caret>nable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user