mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 18:20:52 +07:00
18 lines
293 B
Java
18 lines
293 B
Java
// "Remove redundant 'close()'" "true-preview"
|
|
|
|
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");
|
|
}
|
|
}
|
|
} |