Fix testdata for tests which use varargs
Change tests to use new syntax for array literals to prevent deprecation warnings (see KT-20171).
This commit is contained in:
Vendored
+1
-1
@@ -66,7 +66,7 @@ class ToastTest(context: Context) : Activity() {
|
||||
@android.annotation.SuppressLint("ShowToast", "Lorem ipsum")
|
||||
val toast2 = Toast.makeText(this, "MyToast", Toast.LENGTH_LONG)
|
||||
|
||||
@android.annotation.SuppressLint(value = "ShowToast")
|
||||
@android.annotation.SuppressLint(value = ["ShowToast"])
|
||||
val toast3 = Toast.makeText(this, "MyToast", Toast.LENGTH_LONG)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user