Surround with null check : apply for ITERATOR_ON_NULLABLE
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Surround with null check" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(list: List<String>?) {
|
||||
if (list != null) {
|
||||
for (element in list) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user