Skip to content

Commit

Permalink
Merge branch '2.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 14, 2020
2 parents 82fc183 + 3d5156b commit 328541b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@ public Short deserialize(JsonParser p, DeserializationContext ctxt)
if (_primitive) {
return _parseShortPrimitive(p, ctxt);
}
return _parseShort(ctxt, p);
return _parseShort(p, ctxt);
}

protected Short _parseShort(DeserializationContext ctxt, JsonParser p)
protected Short _parseShort(JsonParser p, DeserializationContext ctxt)
throws IOException
{
CoercionAction act;
Expand Down Expand Up @@ -472,7 +472,7 @@ public Integer deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
if (_primitive) {
return _parseIntPrimitive(p, ctxt);
}
return _parseInteger(ctxt, p);
return _parseInteger(p, ctxt);
}

// Since we can never have type info ("natural type"; String, Boolean, Integer, Double):
Expand All @@ -487,10 +487,10 @@ public Integer deserializeWithType(JsonParser p, DeserializationContext ctxt,
if (_primitive) {
return _parseIntPrimitive(p, ctxt);
}
return _parseInteger(ctxt, p);
return _parseInteger(p, ctxt);
}

protected final Integer _parseInteger(DeserializationContext ctxt, JsonParser p)
protected final Integer _parseInteger(JsonParser p, DeserializationContext ctxt)
throws IOException
{
CoercionAction act;
Expand Down Expand Up @@ -566,10 +566,10 @@ public Long deserialize(JsonParser p, DeserializationContext ctxt) throws IOExce
if (_primitive) {
return _parseLongPrimitive(p, ctxt);
}
return _parseLong(ctxt, p);
return _parseLong(p, ctxt);
}

protected final Long _parseLong(DeserializationContext ctxt, JsonParser p)
protected final Long _parseLong(JsonParser p, DeserializationContext ctxt)
throws IOException
{
CoercionAction act;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ protected final boolean _parseBooleanPrimitive(JsonParser p, DeserializationCont

// may accept ints too, (0 == false, otherwise true)
if (t == JsonToken.VALUE_NUMBER_INT) {
Boolean b = _coerceBooleanFromInt(ctxt, p, Boolean.TYPE);
Boolean b = _coerceBooleanFromInt(p, ctxt, Boolean.TYPE);
// may get `null`, Boolean.TRUE or Boolean.FALSE so:
return (b == Boolean.TRUE);
}
Expand Down Expand Up @@ -419,7 +419,7 @@ protected final Boolean _parseBoolean(JsonParser p, DeserializationContext ctxt,
return null;
case JsonTokenId.ID_NUMBER_INT:
// may accept ints too, (0 == false, otherwise true)
return _coerceBooleanFromInt(ctxt, p, targetType);
return _coerceBooleanFromInt(p, ctxt, targetType);
case JsonTokenId.ID_START_ARRAY: // unwrapping / from-empty-array coercion?
return (Boolean) _deserializeFromArray(p, ctxt);
}
Expand Down Expand Up @@ -1029,7 +1029,7 @@ protected CoercionAction _checkFloatToIntCoercion(JsonParser p, DeserializationC
/**
* @since 2.12
*/
protected Boolean _coerceBooleanFromInt(DeserializationContext ctxt, JsonParser p,
protected Boolean _coerceBooleanFromInt(JsonParser p, DeserializationContext ctxt,
Class<?> rawTargetType)
throws IOException
{
Expand Down

0 comments on commit 328541b

Please sign in to comment.