mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
sonar issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897676 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c86141c9fd
commit
53f0d6e33e
@ -107,7 +107,7 @@ public class FractionFormat extends Format {
|
||||
@SuppressWarnings("squid:S2111")
|
||||
public String format(Number num) {
|
||||
|
||||
final BigDecimal doubleValue = BigDecimal.valueOf(num.doubleValue());
|
||||
final BigDecimal doubleValue = new BigDecimal(num.doubleValue());
|
||||
|
||||
final boolean isNeg = doubleValue.compareTo(BigDecimal.ZERO) < 0;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user