mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
16 lines
378 B
Java
16 lines
378 B
Java
// "Replace with method reference" "false"
|
|
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 new Dee<caret>Bee<B> () {
|
|
public B run(final Void c) throws SQLException {
|
|
return f.f(null).run(c);
|
|
}
|
|
};
|
|
}
|
|
} |