mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
9 lines
223 B
Java
9 lines
223 B
Java
// "Annotate parameter 'obj' as '@NonNls'" "true-preview"
|
|
import java.util.Optional;
|
|
|
|
class Foo {
|
|
void consumerTest() {
|
|
Optional.of(new Object() {void foo(String s) {}}).ifPresent(obj -> obj.foo("<caret>bar"));
|
|
}
|
|
}
|