mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
RedundantExplicitCloseInspection created: IDEA-176630
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// "Remove redundant close" "true"
|
||||
|
||||
class MyAutoCloseable implements AutoCloseable {
|
||||
@Override
|
||||
void close() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class RemoveTry {
|
||||
public static void main(String[] args) {
|
||||
try(MyAutoCloseable ac = new MyAutoCloseable()) {
|
||||
System.out.println("asdasd");
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// "Remove redundant close" "true"
|
||||
|
||||
class MyAutoCloseable implements AutoCloseable {
|
||||
@Override
|
||||
void close() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class RemoveTry {
|
||||
public static void main(String[] args) {
|
||||
try(MyAutoCloseable ac = new MyAutoCloseable()) {
|
||||
System.out.println("asdasd");
|
||||
ac.close<caret>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user