Refactoring: "simplify assert not null" is now an inspection
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(p: Array<String?>) {
|
||||
val v1 = p[0]
|
||||
val v2 = p[1]
|
||||
<caret>assert(v1 != null)
|
||||
}
|
||||
Reference in New Issue
Block a user