Added DoubleBangToIfThenIntention

This commit is contained in:
Zack Grannan
2014-04-14 15:25:39 -07:00
committed by Zalim Bashorov
parent f58e1811e4
commit 8476a790bd
32 changed files with 265 additions and 0 deletions
@@ -0,0 +1,4 @@
foo(if (maybeSomething != null)
maybeSomething
else
throw NullPointerException("expression 'maybeSomething' must not be null") )
@@ -0,0 +1 @@
foo(maybeSomething!!)
@@ -0,0 +1,6 @@
<html>
<body>
Converts an expression that uses the '!!' operator to an if-then expression that throws a
NullPointerException if the expression is null.
</body>
</html>