File tree 1 file changed +22
-0
lines changed
src/main/java/com/fasterxml/jackson/core/json
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com .fasterxml .jackson .core .json ;
2
2
3
+ import java .io .IOException ;
4
+
3
5
import com .fasterxml .jackson .core .*;
6
+ import com .fasterxml .jackson .core .JsonParser .NumberTypeFP ;
4
7
import com .fasterxml .jackson .core .base .ParserBase ;
5
8
import com .fasterxml .jackson .core .io .CharTypes ;
6
9
import com .fasterxml .jackson .core .io .IOContext ;
@@ -80,6 +83,25 @@ public final JacksonFeatureSet<StreamReadCapability> getReadCapabilities() {
80
83
return JSON_READ_CAPABILITIES ;
81
84
}
82
85
86
+ /*
87
+ /**********************************************************************
88
+ /* Overrides
89
+ /**********************************************************************
90
+ */
91
+
92
+ /**
93
+ * JSON format does not have native information on "correct" floating-point
94
+ * type to use, unlike some formats (most binary formats), so it needs to
95
+ * indicate this as {@link NumberTypeFP#UNKNOWN}.
96
+ *
97
+ * @return Natural floating-point type if known; {@link NumberTypeFP#UNKNOWN} for
98
+ * all JSON-backed parsers.
99
+ */
100
+ @ Override // added in 2.17
101
+ public NumberTypeFP getNumberTypeFP () throws IOException {
102
+ return NumberTypeFP .UNKNOWN ;
103
+ }
104
+
83
105
/*
84
106
/**********************************************************************
85
107
/* Location handling
You can’t perform that action at this time.
0 commit comments