[Java:S5411] Boxed booleans are ok to be used, if null-checked before

Rule S5411 should ignore boxed Booleans in boolean expressions, if null checked before.

Boolean b = …;

if ( b != null )
doSometing( b ? “a” : “b” );

This code should not be complained about.

Hello Marvin,

Thanks for your feedback. Your suggestion does make sense for us. So I created a ticket for it:

Have a nice day!

Very nice! Thanks.