KT-7443 Inspection + intention to replace assert (x != null) with "!!" or elvis
#KT-7443 Fixed
This commit is contained in:
@@ -0,0 +1 @@
|
||||
val v = something()<spot>!!</spot>
|
||||
@@ -0,0 +1,2 @@
|
||||
val v = something()
|
||||
<spot>assert(v != null)</spot>
|
||||
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces an 'assert' call which checks that a variable declared above has non-null value
|
||||
with use of '!!' or '?:' operator in the variable initializer.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user