mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 14:50:53 +07:00
14 lines
293 B
Java
14 lines
293 B
Java
// "Replace with method reference" "false"
|
|
class Test {
|
|
public interface I {
|
|
String m();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
I<String> supplier = () -> new Ob<caret>ject().toString();
|
|
|
|
System.out.println(supplier.get());
|
|
System.out.println(supplier.get());
|
|
}
|
|
}
|