mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Android Lint: check for array initializer in SuppressLint
GitOrigin-RevId: cb648266c996fa7caf025c9bb0009849f0160d06
This commit is contained in:
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 {
|
||||
|
||||
Reference in New Issue
Block a user