anonym -> method ref: do not collapse in method ref when qualifier calls performs smth (IDEA-93697)

This commit is contained in:
anna
2012-10-26 14:10:43 +02:00
parent 64b2932d5e
commit 4c1ebfc416
3 changed files with 7 additions and 13 deletions

View File

@@ -1,12 +0,0 @@
// "Replace with method reference" "true"
interface Foo<A, B> {
B f(A a);
}
interface DeeBee<A> {
A run(Void c) throws SQLException;
<B> DeeBee<B> bind(final Foo<A, DeeBee<B>> f) default {
return f.f(null)::run;
}
}

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "false"
interface Foo<A, B> {
B f(A a);
}