mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
redundant code block: compare same overload resolution (IDEA-174288)
instead of trying with cast afterwards, don't suggest to remove the block at the first place
This commit is contained in:
+3
-1
@@ -9,6 +9,8 @@ class A {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
submit((Runnable) () -> new A());
|
||||
submit(() -> {
|
||||
new A();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user