Skip to content

Commit 6714afb

Browse files
committed
fix coverage
1 parent 9c1cd83 commit 6714afb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/com/alibaba/fastjson2/JSONReader.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -3098,9 +3098,8 @@ public final Number getNumber() {
30983098
if ((context.features & (Feature.UseBigDecimalForDoubles.mask | Feature.UseBigDecimalForFloats.mask)) == 0) {
30993099
return Double.parseDouble(
31003100
decimalStr + "E" + exponent);
3101-
} else {
3102-
return new BigDecimal(decimalStr + "E" + exponent);
31033101
}
3102+
return new BigDecimal(decimalStr + "E" + exponent);
31043103
}
31053104

31063105
if ((context.features & Feature.UseDoubleForDecimals.mask) != 0) {

0 commit comments

Comments
 (0)