From 7b4d75d4b040648f192a2facb146b971c95a63e7 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Mon, 21 Oct 2019 20:46:02 -0700 Subject: [PATCH] remove a warning --- .../jsr310/deser/JSR310StringParsableDeserializer.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/deser/JSR310StringParsableDeserializer.java b/datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/deser/JSR310StringParsableDeserializer.java index e0372eca..1fb2b3d1 100644 --- a/datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/deser/JSR310StringParsableDeserializer.java +++ b/datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/deser/JSR310StringParsableDeserializer.java @@ -62,13 +62,13 @@ public class JSR310StringParsableDeserializer public static final JsonDeserializer 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)supportedType); - _valueType = valueId; + _typeSelector = typeSelector; } /** @@ -76,7 +76,7 @@ protected JSR310StringParsableDeserializer(Class supportedType, int valueId) */ protected JSR310StringParsableDeserializer(JSR310StringParsableDeserializer base, Boolean leniency) { super(base, leniency); - _valueType = base._valueType; + _typeSelector = base._typeSelector; } @SuppressWarnings("unchecked") @@ -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: