File tree Expand file tree Collapse file tree 5 files changed +26
-6
lines changed
avro/src/main/java/com/fasterxml/jackson/dataformat/avro/deser
cbor/src/main/java/com/fasterxml/jackson/dataformat/cbor
ion/src/main/java/com/fasterxml/jackson/dataformat/ion
protobuf/src/main/java/com/fasterxml/jackson/dataformat/protobuf
smile/src/main/java/com/fasterxml/jackson/dataformat/smile Expand file tree Collapse file tree 5 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,11 @@ public final Number getNumberValue() throws IOException
229229 return _numberFloat ;
230230 }
231231
232+ @ Override // @since 2.12 -- for (most?) binary formats exactness guaranteed anyway
233+ public final Number getNumberValueExact () throws IOException {
234+ return getNumberValue ();
235+ }
236+
232237 @ Override
233238 public final NumberType getNumberType () throws IOException
234239 {
Original file line number Diff line number Diff line change @@ -1793,6 +1793,11 @@ public Number getNumberValue() throws IOException
17931793 return _numberFloat ;
17941794 }
17951795
1796+ @ Override // @since 2.12 -- for (most?) binary formats exactness guaranteed anyway
1797+ public final Number getNumberValueExact () throws IOException {
1798+ return getNumberValue ();
1799+ }
1800+
17961801 @ Override
17971802 public NumberType getNumberType () throws IOException
17981803 {
Original file line number Diff line number Diff line change 3434public class IonParser
3535 extends ParserMinimalBase
3636{
37- private static final BigInteger LONG_MIN_VALUE = BigInteger .valueOf (Long .MIN_VALUE );
38- private static final BigInteger LONG_MAX_VALUE = BigInteger .valueOf (Long .MAX_VALUE );
39- private static final BigInteger INT_MIN_VALUE = BigInteger .valueOf (Integer .MIN_VALUE );
40- private static final BigInteger INT_MAX_VALUE = BigInteger .valueOf (Integer .MAX_VALUE );
41-
4237 /*
4338 /**********************************************************************
4439 /* Basic configuration
@@ -285,6 +280,11 @@ public Number getNumberValue() throws IOException {
285280 return null ;
286281 }
287282
283+ @ Override
284+ public final Number getNumberValueExact () throws IOException {
285+ return getNumberValue ();
286+ }
287+
288288 // @TODO -- 27-Jun-2020, tatu: 3.0 requires parser implementations to define
289289 // and I _think_ this should be implemented, assuming Ion allows some Not-a-Number
290290 // values for floating-point types?
Original file line number Diff line number Diff line change @@ -1617,7 +1617,12 @@ public Number getNumberValue() throws IOException
16171617 }
16181618 return _numberFloat ;
16191619 }
1620-
1620+
1621+ @ Override // @since 2.12 -- for (most?) binary formats exactness guaranteed anyway
1622+ public final Number getNumberValueExact () throws IOException {
1623+ return getNumberValue ();
1624+ }
1625+
16211626 @ Override
16221627 public NumberType getNumberType () throws IOException
16231628 {
Original file line number Diff line number Diff line change @@ -427,6 +427,11 @@ public final Number getNumberValue() throws IOException
427427 }
428428 }
429429
430+ @ Override // @since 2.12 -- for (most?) binary formats exactness guaranteed anyway
431+ public final Number getNumberValueExact () throws IOException {
432+ return getNumberValue ();
433+ }
434+
430435 @ Override
431436 public final NumberType getNumberType () throws IOException
432437 {
You can’t perform that action at this time.
0 commit comments