mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-23 17:22:51 +07:00
17 lines
309 B
Java
17 lines
309 B
Java
// "Remove redundant close" "true"
|
|
|
|
class MyAutoCloseable implements AutoCloseable {
|
|
@Override
|
|
void close() {
|
|
|
|
}
|
|
}
|
|
|
|
class RemoveTry {
|
|
public static void main(String[] args) {
|
|
try(MyAutoCloseable ac = new MyAutoCloseable()) {
|
|
System.out.println("asdasd");
|
|
ac.close<caret>();
|
|
}
|
|
}
|
|
} |