[Niels Harremoes @ hackergarten] invert if condition in groovy

This commit is contained in:
peter
2011-11-15 16:17:28 +01:00
parent c46ce88d4a
commit 925fb72533
7 changed files with 235 additions and 0 deletions
@@ -0,0 +1 @@
<spot>if</spot> (a) b = false
@@ -0,0 +1,2 @@
if (!a) {
} else b = false;
@@ -0,0 +1,10 @@
<html>
<body>
<span style="font-family: verdana,serif; font-size: smaller;">
This intention replaces <b><font color="#000080">if</font></b> statement with
another <b><font color="#000080">if</font></b> statement using inverted condition inside.
<br>
The intention might be useful to e.g. simplify complex code using multiple nested <b><font color="#000080">if</font></b> statements.
</span>
</body>
</html>