RedundantCastUtil: some fixes for doubly parenthesized qualifiers

This commit is contained in:
Tagir Valeev
2018-07-09 12:31:42 +07:00
parent c5b0b1e743
commit be51bc94e1
3 changed files with 22 additions and 7 deletions
@@ -0,0 +1,6 @@
// "Replace with lambda" "true"
class Test {
private void doSomething() {
(((Runnable) () -> System.out.println())).run();
}
}
@@ -0,0 +1,10 @@
// "Replace with lambda" "true"
class Test {
private void doSomething() {
((new <caret>Runnable() {
public void run() {
System.out.println();
}
})).run();
}
}