For some reason the rule java:S2111 did not detect the following issue:
Object myDoubleObject = 23.5d;
new BigDecimal((Double)myDoubleObject)
However, when i change it to the following the issue is detected correctly:
Object myDoubleObject = 23.5d;
new BigDecimal((double)(Double)myDoubleObject)
SonarQube Version: 8.0.0.29455
SQUID: https://rules.sonarsource.com/java/RSPEC-2111
I hope this is not expected behaviour 