aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-10-03 10:45:08 +0000
committerPJ Fanning <fanningpj@apache.org>2021-10-03 10:45:08 +0000
commite9270143aa55c1498cbd99eb097e92312fcfcce1 (patch)
tree54333c28d4114eb7032df1b0e07d113b2e7d0899 /poi/src
parentbf372571939d19b441788bb2ef265f2ce30bae4f (diff)
downloadpoi-e9270143aa55c1498cbd99eb097e92312fcfcce1.tar.gz
poi-e9270143aa55c1498cbd99eb097e92312fcfcce1.zip
broken test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893849 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src')
-rw-r--r--poi/src/main/java/org/apache/poi/ss/usermodel/FractionFormat.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/FractionFormat.java b/poi/src/main/java/org/apache/poi/ss/usermodel/FractionFormat.java
index 8f082a0db1..af02fa954a 100644
--- a/poi/src/main/java/org/apache/poi/ss/usermodel/FractionFormat.java
+++ b/poi/src/main/java/org/apache/poi/ss/usermodel/FractionFormat.java
@@ -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;
@@ -155,7 +155,7 @@ public class FractionFormat extends Format {
//now format the results
if (isNeg){
- sb.append("-");
+ sb.append('-');
}
//if whole part has to go into the numerator