commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haris Adzemovic (Jira)" <>
Subject [jira] [Created] (CONFIGURATION-766) BigDecimal(double) should not be used
Date Tue, 29 Oct 2019 10:19:00 GMT
Haris Adzemovic created CONFIGURATION-766:

             Summary: BigDecimal(double) should not be used
                 Key: CONFIGURATION-766
             Project: Commons Configuration
          Issue Type: Bug
         Environment: A single occurrence in file, line 393:
return new BigDecimal(n.doubleValue());
            Reporter: Haris Adzemovic

Static analysis with SonarQube shows a violation of ruleĀ [S2111|[]]
- a dangerous use of the BigDecimal constructor.

Fixed by using BigDecimal.valueOf(param) instead.

This message was sent by Atlassian Jira

View raw message