Skip to content

Commit

Permalink
remove a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 22, 2019
1 parent f81820d commit 7b4d75d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ public class JSR310StringParsableDeserializer
public static final JsonDeserializer<ZoneOffset> ZONE_OFFSET =
createDeserializer(ZoneOffset.class, TYPE_ZONE_OFFSET);

protected final int _valueType;
protected final int _typeSelector;

@SuppressWarnings("unchecked")
protected JSR310StringParsableDeserializer(Class<?> supportedType, int valueId)
protected JSR310StringParsableDeserializer(Class<?> supportedType, int typeSelector)
{
super((Class<Object>)supportedType);
_valueType = valueId;
_typeSelector = typeSelector;
}

/**
* Since 2.11
*/
protected JSR310StringParsableDeserializer(JSR310StringParsableDeserializer base, Boolean leniency) {
super(base, leniency);
_valueType = base._valueType;
_typeSelector = base._typeSelector;
}

@SuppressWarnings("unchecked")
Expand Down Expand Up @@ -106,7 +106,7 @@ public Object deserialize(JsonParser parser, DeserializationContext context) thr
return null;
}
try {
switch (_valueType) {
switch (_typeSelector) {
case TYPE_PERIOD:
return Period.parse(string);
case TYPE_ZONE_ID:
Expand Down

0 comments on commit 7b4d75d

Please sign in to comment.