KT-7443 Inspection + intention to replace assert (x != null) with "!!" or elvis

#KT-7443 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-01-14 16:20:43 +03:00
parent 5ad4571ddf
commit 552359ce03
30 changed files with 397 additions and 0 deletions
@@ -0,0 +1,8 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
fun foo(p: Array<String?>) {
val v1 = p[0]
val v2 = p[1]
<caret>assert(v1 != null)
}