Add "Redundant 'requireNotNull' or 'checkNotNull' call" inspection
#KT-29113 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c234683770
commit
fa1f3871c0
@@ -0,0 +1,11 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
class Test {
|
||||
var s: String? = null
|
||||
|
||||
fun test() {
|
||||
if (s != null) {
|
||||
<caret>requireNotNull(s)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user