Files
openide/plugins/groovy/groovy-psi/resources/inspectionDescriptions/GroovyNestedConditional.html
alexey.afanasiev 892a0ba1fb [groovy] Proofreading inspections.
GitOrigin-RevId: 3f2da6a12ebc912aa0838ab3f7c01f939d29e94d
2021-06-07 21:47:27 +00:00

13 lines
349 B
HTML

<html>
<body>
Reports ternary conditional expressions that are nested inside other conditional expressions.
Such nested conditionals may be very confusing. "Elvis" expressions are counted as conditionals
for purpose of this inspection.
<p><b>Example:</b></p>
<pre>
<code>
return (condition ? "result" : null) ?: "fail"
</code>
</pre>
</body>
</html>