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:
Anna Kozlova
2017-06-14 11:51:52 +03:00
parent 268a6149e3
commit 3dff91600a
2 changed files with 6 additions and 3 deletions
@@ -9,6 +9,8 @@ class A {
}
public static void main(String[] args) {
submit((Runnable) () -> new A());
submit(() -> {
new A();
});
}
}