We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c1cd83 commit 6714afbCopy full SHA for 6714afb
core/src/main/java/com/alibaba/fastjson2/JSONReader.java
@@ -3098,9 +3098,8 @@ public final Number getNumber() {
3098
if ((context.features & (Feature.UseBigDecimalForDoubles.mask | Feature.UseBigDecimalForFloats.mask)) == 0) {
3099
return Double.parseDouble(
3100
decimalStr + "E" + exponent);
3101
- } else {
3102
- return new BigDecimal(decimalStr + "E" + exponent);
3103
}
+ return new BigDecimal(decimalStr + "E" + exponent);
3104
3105
3106
if ((context.features & Feature.UseDoubleForDecimals.mask) != 0) {
0 commit comments