mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Niels Harremoes @ hackergarten] invert if condition in groovy
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user