Closed
Description
Philippe Marschall opened SPR-15077 and commented
Codacy warns about an Error Prone use of the double constructor of BigDecimal in tests. The reason given is that it is a source of precision loss if the number does not have an exact double representation. The recommendation is to use the String constructor of BigDecimal instead as it does not require using a lossy argument.
Issue Links:
- Compatibility with merged JDK 9 mainline [SPR-13344] #17928 Compatibility with merged JDK 9 mainline
- Remove use of Boolean constructors in tests [SPR-15076] #19642 Remove use of Boolean constructors in tests
Referenced from: pull request #1282