Android Lint: check for array initializer in SuppressLint

This commit is contained in:
Vyacheslav Gerasimov
2017-08-29 21:56:57 +03:00
parent f4da6c2cc6
commit be900a76d8
2 changed files with 24 additions and 5 deletions
+7 -1
View File
@@ -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 {