mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
do not return lambda parameter type as denotable in RefactoringUtil (IDEA-136617)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import java.util.function.Supplier;
|
||||
class Test {
|
||||
|
||||
private void a()
|
||||
{
|
||||
b(<selection>(s) -> {
|
||||
System.out.println(s);
|
||||
}</selection>);
|
||||
}
|
||||
|
||||
void b(Supplier s) {}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import java.util.function.Supplier;
|
||||
class Test {
|
||||
|
||||
private void a()
|
||||
{
|
||||
b(newMethod());
|
||||
}
|
||||
|
||||
private Supplier newMethod() {
|
||||
return (s) -> {
|
||||
System.out.println(s);
|
||||
};
|
||||
}
|
||||
|
||||
void b(Supplier s) {}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import java.util.function.Supplier;
|
||||
class Test {
|
||||
|
||||
private void a()
|
||||
{
|
||||
b((s) -> {
|
||||
System.out.println(<selection>s</selection>);
|
||||
});
|
||||
}
|
||||
|
||||
void b(Supplier s) {}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import java.util.function.Supplier;
|
||||
class Test {
|
||||
|
||||
private void a()
|
||||
{
|
||||
b((s) -> {
|
||||
System.out.println(newMethod((Object) s));
|
||||
});
|
||||
}
|
||||
|
||||
private boolean newMethod(Object s) {
|
||||
return s;
|
||||
}
|
||||
|
||||
void b(Supplier s) {}
|
||||
}
|
||||
Reference in New Issue
Block a user