File tree Expand file tree Collapse file tree 5 files changed +27
-7
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 +27
-7
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,11 @@ public final Number getNumberValue() throws IOException
208208 return _numberFloat ;
209209 }
210210
211+ @ Override // @since 2.12 -- for (most?) binary formats exactness guaranteed anyway
212+ public final Number getNumberValueExact () throws IOException {
213+ return getNumberValue ();
214+ }
215+
211216 @ Override
212217 public final NumberType getNumberType () throws IOException
213218 {
Original file line number Diff line number Diff line change @@ -1786,6 +1786,11 @@ public Number getNumberValue() throws IOException
17861786 return _numberFloat ;
17871787 }
17881788
1789+ @ Override // @since 2.12 -- for (most?) binary formats exactness guaranteed anyway
1790+ public final Number getNumberValueExact () throws IOException {
1791+ return getNumberValue ();
1792+ }
1793+
17891794 @ Override
17901795 public NumberType getNumberType () throws IOException
17911796 {
Original file line number Diff line number Diff line change 3535public class IonParser
3636 extends ParserMinimalBase
3737{
38- private static final BigInteger LONG_MIN_VALUE = BigInteger .valueOf (Long .MIN_VALUE );
39- private static final BigInteger LONG_MAX_VALUE = BigInteger .valueOf (Long .MAX_VALUE );
40- private static final BigInteger INT_MIN_VALUE = BigInteger .valueOf (Integer .MIN_VALUE );
41- private static final BigInteger INT_MAX_VALUE = BigInteger .valueOf (Integer .MAX_VALUE );
42-
4338 /*
4439 /*****************************************************************
4540 /* Basic configuration
@@ -309,7 +304,12 @@ public Number getNumberValue() throws IOException {
309304 }
310305 return null ;
311306 }
312-
307+
308+ @ Override // @since 2.12 -- for (most?) binary formats exactness guaranteed anyway
309+ public final Number getNumberValueExact () throws IOException {
310+ return getNumberValue ();
311+ }
312+
313313 /*
314314 /****************************************************************
315315 /* JsonParser implementation: Access to other (non-text/number) values
Original file line number Diff line number Diff line change @@ -1528,7 +1528,12 @@ public Number getNumberValue() throws IOException
15281528 }
15291529 return _numberFloat ;
15301530 }
1531-
1531+
1532+ @ Override // @since 2.12 -- for (most?) binary formats exactness guaranteed anyway
1533+ public final Number getNumberValueExact () throws IOException {
1534+ return getNumberValue ();
1535+ }
1536+
15321537 @ Override
15331538 public NumberType getNumberType () throws IOException
15341539 {
Original file line number Diff line number Diff line change @@ -479,6 +479,11 @@ public final Number getNumberValue() throws IOException
479479 }
480480 }
481481
482+ @ Override // @since 2.12 -- for (most?) binary formats exactness guaranteed anyway
483+ public final Number getNumberValueExact () throws IOException {
484+ return getNumberValue ();
485+ }
486+
482487 @ Override
483488 public final NumberType getNumberType () throws IOException
484489 {
You can’t perform that action at this time.
0 commit comments