Refactoring: "simplify assert not null" is now an inspection

This commit is contained in:
Mikhail Glukhikh
2017-12-20 20:59:59 +03:00
parent 8ebe16c9b2
commit 9e919829c8
27 changed files with 134 additions and 132 deletions
@@ -1 +0,0 @@
val v = something()<spot>!!</spot>
@@ -1,2 +0,0 @@
val v = something()
<spot>assert(v != null)</spot>
@@ -1,6 +0,0 @@
<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>