26
26
*/
27
27
@ JacksonStdImpl
28
28
public class ObjectArrayDeserializer
29
- extends ContainerDeserializerBase <Object [] >
29
+ extends ContainerDeserializerBase <Object >
30
30
implements ContextualDeserializer
31
31
{
32
32
private static final long serialVersionUID = 1L ;
@@ -189,7 +189,7 @@ public Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingExcep
189
189
*/
190
190
191
191
@ Override
192
- public Object [] deserialize (JsonParser p , DeserializationContext ctxt )
192
+ public Object deserialize (JsonParser p , DeserializationContext ctxt )
193
193
throws IOException
194
194
{
195
195
// Ok: must point to START_ARRAY (or equivalent)
@@ -240,7 +240,7 @@ public Object[] deserialize(JsonParser p, DeserializationContext ctxt)
240
240
}
241
241
242
242
@ Override
243
- public Object [] deserializeWithType (JsonParser p , DeserializationContext ctxt ,
243
+ public Object deserializeWithType (JsonParser p , DeserializationContext ctxt ,
244
244
TypeDeserializer typeDeserializer )
245
245
throws IOException
246
246
{
@@ -250,11 +250,12 @@ public Object[] deserializeWithType(JsonParser p, DeserializationContext ctxt,
250
250
}
251
251
252
252
@ Override // since 2.9
253
- public Object [] deserialize (JsonParser p , DeserializationContext ctxt ,
254
- Object [] intoValue ) throws IOException
253
+ public Object deserialize (JsonParser p , DeserializationContext ctxt ,
254
+ Object intoValue0 ) throws IOException
255
255
{
256
+ final Object [] intoValue = (Object []) intoValue0 ;
256
257
if (!p .isExpectedStartArrayToken ()) {
257
- Object [] arr = handleNonArray (p , ctxt );
258
+ Object [] arr = ( Object []) handleNonArray (p , ctxt );
258
259
if (arr == null ) {
259
260
return intoValue ;
260
261
}
@@ -324,7 +325,7 @@ protected Byte[] deserializeFromBase64(JsonParser p, DeserializationContext ctxt
324
325
return result ;
325
326
}
326
327
327
- protected Object [] handleNonArray (JsonParser p , DeserializationContext ctxt )
328
+ protected Object handleNonArray (JsonParser p , DeserializationContext ctxt )
328
329
throws IOException
329
330
{
330
331
// Can we do implicit coercion to a single-element array still?
@@ -342,7 +343,7 @@ protected Object[] handleNonArray(JsonParser p, DeserializationContext ctxt)
342
343
// Second: empty (and maybe blank) String
343
344
return _deserializeFromString (p , ctxt );
344
345
}
345
- return ( Object []) ctxt .handleUnexpectedToken (_containerType , p );
346
+ return ctxt .handleUnexpectedToken (_containerType , p );
346
347
}
347
348
348
349
Object value ;
0 commit comments