mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
13 lines
251 B
Plaintext
13 lines
251 B
Plaintext
class X {
|
|
void use() {
|
|
AutoCloseable r = () -> {};
|
|
AutoCloseable ref = r;
|
|
try(ref) {
|
|
System.out.println(ref);
|
|
}
|
|
catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
|
|
} |