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