mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 15:20:54 +07:00
19 lines
316 B
Java
19 lines
316 B
Java
// "Remove redundant 'close()'" "false"
|
|
|
|
class MyAutoCloseable implements AutoCloseable {
|
|
@Override
|
|
public void close() {
|
|
|
|
}
|
|
}
|
|
|
|
class RemoveTry {
|
|
final MyAutoCloseable ac;
|
|
|
|
public void main(RemoveTry other) {
|
|
try(other.ac) {
|
|
System.out.println("asdasd");
|
|
this.ac.clo<caret>se();
|
|
}
|
|
}
|
|
} |