@@ -236,13 +236,13 @@ protected T _deserializeFromString(JsonParser p, DeserializationContext ctxt)
236
236
if (inst .canCreateFromInt ()) {
237
237
if (ctxt .findCoercionAction (LogicalType .Integer , Integer .class ,
238
238
CoercionInputShape .String ) == CoercionAction .TryConvert ) {
239
- return (T ) inst .createFromInt (ctxt , _parseIntPrimitive (ctxt , value ));
239
+ return (T ) inst .createFromInt (ctxt , _parseIntPrimitive (p , ctxt , value ));
240
240
}
241
241
}
242
242
if (inst .canCreateFromLong ()) {
243
243
if (ctxt .findCoercionAction (LogicalType .Integer , Long .class ,
244
244
CoercionInputShape .String ) == CoercionAction .TryConvert ) {
245
- return (T ) inst .createFromLong (ctxt , _parseLongPrimitive (ctxt , value ));
245
+ return (T ) inst .createFromLong (ctxt , _parseLongPrimitive (p , ctxt , value ));
246
246
}
247
247
}
248
248
if (inst .canCreateFromBoolean ()) {
@@ -687,10 +687,11 @@ protected final int _parseIntPrimitive(JsonParser p, DeserializationContext ctxt
687
687
_verifyNullForPrimitiveCoercion (ctxt , text );
688
688
return 0 ;
689
689
}
690
- return _parseIntPrimitive (ctxt , text );
690
+ return _parseIntPrimitive (p , ctxt , text );
691
691
}
692
692
693
- protected final int _parseIntPrimitive (DeserializationContext ctxt , String text ) throws JacksonException
693
+ protected final int _parseIntPrimitive (JsonParser p , DeserializationContext ctxt ,
694
+ String text ) throws JacksonException
694
695
{
695
696
try {
696
697
if (text .length () > 9 ) {
@@ -757,10 +758,11 @@ protected final Integer _parseInteger(JsonParser p, DeserializationContext ctxt,
757
758
if (_checkTextualNull (ctxt , text )) {
758
759
return (Integer ) getNullValue (ctxt );
759
760
}
760
- return _parseInteger (ctxt , text );
761
+ return _parseInteger (p , ctxt , text );
761
762
}
762
763
763
- protected final Integer _parseInteger (DeserializationContext ctxt , String text )
764
+ protected final Integer _parseInteger (JsonParser p , DeserializationContext ctxt ,
765
+ String text )
764
766
{
765
767
try {
766
768
if (text .length () > 9 ) {
@@ -832,10 +834,11 @@ protected final long _parseLongPrimitive(JsonParser p, DeserializationContext ct
832
834
_verifyNullForPrimitiveCoercion (ctxt , text );
833
835
return 0L ;
834
836
}
835
- return _parseLongPrimitive (ctxt , text );
837
+ return _parseLongPrimitive (p , ctxt , text );
836
838
}
837
839
838
- protected final long _parseLongPrimitive (DeserializationContext ctxt , String text ) throws JacksonException
840
+ protected final long _parseLongPrimitive (JsonParser p , DeserializationContext ctxt ,
841
+ String text ) throws JacksonException
839
842
{
840
843
try {
841
844
return NumberInput .parseLong (text );
@@ -1093,18 +1096,6 @@ protected final double _parseDoublePrimitive(JsonParser p, DeserializationContex
1093
1096
return _nonNullNumber (v ).doubleValue ();
1094
1097
}
1095
1098
1096
- /**
1097
- * Helper method for encapsulating calls to low-level double value parsing; single place
1098
- * just because we need a work-around that must be applied to all calls.
1099
- * Does not use the new <code>useFastParser</code> support.
1100
- *
1101
- * @see #_parseDouble(String, boolean)
1102
- */
1103
- protected final static double _parseDouble (final String numStr ) throws NumberFormatException
1104
- {
1105
- return _parseDouble (numStr , false );
1106
- }
1107
-
1108
1099
/**
1109
1100
* Helper method for encapsulating calls to low-level double value parsing; single place
1110
1101
* just because we need a work-around that must be applied to all calls.
0 commit comments