mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
inline: unwrap try-with-resources if no resources left after inline (IDEA-109541)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
void m() throws Exception {
|
||||
try (AutoCloseable inl<caret>ineMe = null) {
|
||||
try (AutoCloseable r2 = inlineMe) {
|
||||
System.out.println(inlineMe + ", " + r2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
void m() throws Exception {
|
||||
try (AutoCloseable r2 = null) {
|
||||
System.out.println(null + ", " + r2);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user