Skip to content

Avoid use of double constructor of BigDecimal in tests [SPR-15077] #19643

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: pull request #1282

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions