java redundant cast: fixed multiple casts in synchronized stmt

GitOrigin-RevId: 49a7d8dbcd26a3aa905c57db97d386bcbd285464
This commit is contained in:
Anna Kozlova
2020-05-07 10:10:36 +02:00
committed by intellij-monorepo-bot
parent f0233d4e68
commit fdc80d017c
3 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
class MyTest {
void dblCast() {
synchronized ((Runnable) (<warning descr="Casting '() -> {...}' to 'Runnable' is redundant">Runnable</warning>) () -> {}) {}
synchronized ((Runnable) (<warning descr="Casting '(Runnable)() -> {...}' to 'Runnable' is redundant">Runnable</warning>)(<warning descr="Casting '() -> {...}' to 'Runnable' is redundant">Runnable</warning>) () -> {}) {}
}
}