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