mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 01:20:53 +07:00
16 lines
303 B
Java
16 lines
303 B
Java
// "Remove redundant 'close()'" "true-preview"
|
|
|
|
class MyAutoCloseable implements AutoCloseable {
|
|
@Override
|
|
public void close() {
|
|
|
|
}
|
|
}
|
|
|
|
class RemoveTry {
|
|
public static void main(String[] args) {
|
|
try(MyAutoCloseable ac = new MyAutoCloseable()) {
|
|
System.out.println("asdasd");
|
|
}
|
|
}
|
|
} |