Fix tests broken by enhanced RedundantSamConstructor inspection

- The inspection now works in more cases, so the test data had to be
updated accordingly
This commit is contained in:
Roman Golyshev
2020-02-20 17:27:41 +03:00
committed by Roman Golyshev
parent 22a5bc4144
commit 4042214bb2
19 changed files with 110 additions and 30 deletions
@@ -8,6 +8,6 @@ internal class Test {
}
fun nya(): Double {
return foo(1, FunctionalI { x: Int -> this.toDouble(x) })
return foo(1, { x: Int -> this.toDouble(x) })
}
}
+2 -2
View File
@@ -9,13 +9,13 @@ class Foo {
private val activity: Activity? = null
fun foo() {
synchronized(this) {
activity!!.runOnUiThread(Runnable { })
activity!!.runOnUiThread { }
}
}
fun bar() {
synchronized(this) {
activity!!.runOnUiThread(Runnable { })
activity!!.runOnUiThread { }
}
}
}