Skip to content

Commit 75236bf

Browse files
committed
Merge branch '2.12'
2 parents 3f94b50 + 08ff181 commit 75236bf

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

avro/src/main/java/com/fasterxml/jackson/dataformat/avro/deser/AvroParserImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

cbor/src/main/java/com/fasterxml/jackson/dataformat/cbor/CBORParser.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

ion/src/main/java/com/fasterxml/jackson/dataformat/ion/IonParser.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
public 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?

protobuf/src/main/java/com/fasterxml/jackson/dataformat/protobuf/ProtobufParser.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
{

smile/src/main/java/com/fasterxml/jackson/dataformat/smile/SmileParserBase.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)