mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 14:20:55 +07:00
PR#2106 Reviewed-by: Tagir Valeev <tagir.valeev@jetbrains.com> GitOrigin-RevId: 501e4fee7441bf38e1d0ad19f826d3a7b565920b
18 lines
356 B
Java
18 lines
356 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("Number of parameters?");
|
|
if (args.length == 0) {
|
|
}
|
|
}
|
|
}
|
|
} |