mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-30 17:27:53 +07:00
RedundantCastUtil: some fixes for doubly parenthesized qualifiers
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
private void doSomething() {
|
||||
(((Runnable) () -> System.out.println())).run();
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
private void doSomething() {
|
||||
((new <caret>Runnable() {
|
||||
public void run() {
|
||||
System.out.println();
|
||||
}
|
||||
})).run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user