java:S5845 assertion of BigDecimal and String should be allowed

We see a false positive on:

assertThat(myBigDecimal).isEqualTo("0.00");

Thanks!

1 Like

Hello @internetstaff,

I am unhappy to see that we are (again) reporting false positives for this rule but glad that you are here to report them.

Ticket created: SONARJAVA-3539.

Thanks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.