How to trigger groovy "conditional" related inspections

Is there any sample code that can trigger the Groovy "Conditional Can Be Elvis" or "Conditional can be conditional call" inspections?

None of my sample code that /should/ trigger these inspections produces them. I looked at the source code and I don't see any test case for these. I can't get the inspection fire.

Any ideas? Is there a test case somewhere I am missing?


1 comment

foo != null ? foo : 2
foo != null ? foo.toString() : null


Please sign in to leave a comment.