@@ -43,25 +43,18 @@ public class RangeDeserializer
43
43
* @since 2.10
44
44
*/
45
45
protected final RangeHelper .RangeProperties _fieldNames ;
46
-
46
+
47
47
/*
48
48
/**********************************************************
49
49
/* Life-cycle
50
50
/**********************************************************
51
51
*/
52
52
53
- /**
54
- * @deprecated Since 2.7
55
- */
56
- @ Deprecated // since 2.7
57
- public RangeDeserializer (JavaType rangeType ) {
58
- this (null , rangeType );
59
- }
60
-
61
53
public RangeDeserializer (BoundType defaultBoundType , JavaType rangeType ) {
62
54
this (rangeType , null , defaultBoundType );
63
55
}
64
56
57
+ @ Deprecated // since 2.12
65
58
public RangeDeserializer (JavaType rangeType , JsonDeserializer <?> endpointDeser ) {
66
59
this (rangeType , endpointDeser , null );
67
60
}
@@ -124,7 +117,7 @@ public JsonDeserializer<?> createContextual(DeserializationContext ctxt,
124
117
/* Actual deserialization
125
118
/**********************************************************
126
119
*/
127
-
120
+
128
121
@ Override
129
122
public Object deserializeWithType (JsonParser p , DeserializationContext ctxt ,
130
123
TypeDeserializer typeDeserializer )
@@ -178,9 +171,9 @@ public Range<?> deserialize(JsonParser p, DeserializationContext context)
178
171
try {
179
172
if ((lowerEndpoint != null ) && (upperEndpoint != null )) {
180
173
Preconditions .checkState (lowerEndpoint .getClass () == upperEndpoint .getClass (),
181
- "Endpoint types are not the same - 'lowerEndpoint' deserialized to [%s], and 'upperEndpoint' deserialized to [%s]." ,
182
- lowerEndpoint .getClass ().getName (),
183
- upperEndpoint .getClass ().getName ());
174
+ "Endpoint types are not the same - 'lowerEndpoint' deserialized to [%s], and 'upperEndpoint' deserialized to [%s]." ,
175
+ lowerEndpoint .getClass ().getName (),
176
+ upperEndpoint .getClass ().getName ());
184
177
Preconditions .checkState (lowerBoundType != null , "'lowerEndpoint' field found, but not 'lowerBoundType'" );
185
178
Preconditions .checkState (upperBoundType != null , "'upperEndpoint' field found, but not 'upperBoundType'" );
186
179
return RangeFactory .range (lowerEndpoint , lowerBoundType , upperEndpoint , upperBoundType );
0 commit comments