mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
19 lines
291 B
Java
19 lines
291 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
import java.util.function.Supplier;
|
|
class Test {
|
|
|
|
private void a()
|
|
{
|
|
b(newMethod());
|
|
}
|
|
|
|
@NotNull
|
|
private Supplier newMethod() {
|
|
return (s) -> {
|
|
System.out.println(s);
|
|
};
|
|
}
|
|
|
|
void b(Supplier s) {}
|
|
} |