Added inspection based on IfNullToElvisIntention + moved intention based inspections into one file

This commit is contained in:
Valentin Kipyatkov
2015-04-29 15:02:45 +03:00
parent 8d887f8780
commit 186dd5454d
18 changed files with 86 additions and 128 deletions
@@ -0,0 +1 @@
val result = ... ?: return
@@ -0,0 +1,2 @@
val result = ...
if (result == null) return
@@ -0,0 +1,5 @@
<html>
<body>
Converts an if expression checking variable being null right after initializing it to an elvis operator in the initializer (if applicable)
</body>
</html>