Refactoring: "simplify assert not null" is now an inspection
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// FIX: "Replace with '!!' operator"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(p: Array<String?>) {
|
||||
/* null */
|
||||
val v = p[0]!!
|
||||
// now let's check it for null
|
||||
// 'v' should not be null
|
||||
}
|
||||
Reference in New Issue
Block a user