Android Lint: check for array initializer in SuppressLint

GitOrigin-RevId: cb648266c996fa7caf025c9bb0009849f0160d06
This commit is contained in:
Vyacheslav Gerasimov
2017-09-01 13:32:08 +03:00
committed by intellij-monorepo-bot
parent 6427a9c344
commit 9c5240facf
@@ -61,7 +61,13 @@ class ToastTest(context: Context) : Activity() {
private fun checkSuppress2(context: Context) {
@android.annotation.SuppressLint("ShowToast")
val toast = Toast.makeText(this, "MyToast", Toast.LENGTH_LONG)
val toast1 = Toast.makeText(this, "MyToast", Toast.LENGTH_LONG)
@android.annotation.SuppressLint("ShowToast", "Lorem ipsum")
val toast2 = Toast.makeText(this, "MyToast", Toast.LENGTH_LONG)
@android.annotation.SuppressLint(value = "ShowToast")
val toast3 = Toast.makeText(this, "MyToast", Toast.LENGTH_LONG)
}
class R {