Skip to content

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

Closed

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

Activity

  1. spring-projects-issues commented on Jan 4, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Stéphane Nicoll commented

    Thanks for the PR!

  2. added
    in: data
    type: task
    on Jan 11, 2019
  3. added this to the 4.3.6 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: datatype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions