Refactoring: "simplify assert not null" is now an inspection
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user