Files
openide/java/java-tests/testData/refactoring/inlineMethod/ParamAsAutocloseableRef.java.after
Tagir Valeev e35d04820c [java-refactoring] IJPL-157516 T: InlineUtil.inlineVariable
GitOrigin-RevId: 89f3781736ca0f67437538878c26174286657973
2024-06-28 17:23:07 +00:00

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);
}
}
}