mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 21:55:38 +07:00
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
16 lines
268 B
Java
16 lines
268 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");
|
|
}
|
|
}
|
|
} |