mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
change signature: don't unwrap try-with-resources with non-empty resource list (IDEA-202731)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class Scratch {
|
||||
|
||||
static class C implements AutoCloseable {
|
||||
public void close() {}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
try (C c = new C()) {
|
||||
foo();
|
||||
}
|
||||
}
|
||||
|
||||
static void f<caret>oo() throws Exception { }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
class Scratch {
|
||||
|
||||
static class C implements AutoCloseable {
|
||||
public void close() {}
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
try (C c = new C()) {
|
||||
foo();
|
||||
}
|
||||
}
|
||||
|
||||
static void foo() { }
|
||||
}
|
||||
Reference in New Issue
Block a user