mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 02:50:55 +07:00
17 lines
295 B
Java
17 lines
295 B
Java
// "Remove redundant 'close()'" "true-preview"
|
|
|
|
class MyAutoCloseable implements AutoCloseable {
|
|
@Override
|
|
public void close() {
|
|
|
|
}
|
|
}
|
|
|
|
class RemoveTry {
|
|
public static void main(MyAutoCloseable ac) {
|
|
try(ac) {
|
|
System.out.println("asdasd");
|
|
(ac).close<caret>();
|
|
}
|
|
}
|
|
} |