@@ -122,7 +122,7 @@ public CustomAttributeValuesUnion deserialize(JsonParser jp, DeserializationCont
122122 log .log (Level .FINER , "Input data does not match schema 'String'" , e );
123123 }
124124
125- // deserialize List
125+ // deserialize List<String>
126126 try {
127127 boolean attemptParsing = true ;
128128 // ensure that we respect type coercion as set on the client ObjectMapper
@@ -148,18 +148,18 @@ public CustomAttributeValuesUnion deserialize(JsonParser jp, DeserializationCont
148148 }
149149 }
150150 if (attemptParsing ) {
151- tmp = tree .traverse (jp .getCodec ()).readValueAs (List . class );
151+ tmp = tree .traverse (jp .getCodec ()).readValueAs (new TypeReference < List < String >>() {} );
152152 // TODO: there is no validation against JSON schema constraints
153153 // (min, max, enum, pattern...), this does not perform a strict JSON
154154 // validation, which means the 'match' count may be higher than it should be.
155155 deserialized = tmp ;
156156 match ++;
157157
158- log .log (Level .FINER , "Input data matches schema 'List'" );
158+ log .log (Level .FINER , "Input data matches schema 'List<String> '" );
159159 }
160160 } catch (Exception e ) {
161161 // deserialization failed, continue
162- log .log (Level .FINER , "Input data does not match schema 'List'" , e );
162+ log .log (Level .FINER , "Input data does not match schema 'List<String> '" , e );
163163 }
164164
165165 // deserialize Double
@@ -203,7 +203,7 @@ public CustomAttributeValuesUnion deserialize(JsonParser jp, DeserializationCont
203203 log .log (Level .FINER , "Input data does not match schema 'Double'" , e );
204204 }
205205
206- // deserialize List
206+ // deserialize List<Double>
207207 try {
208208 boolean attemptParsing = true ;
209209 // ensure that we respect type coercion as set on the client ObjectMapper
@@ -229,18 +229,18 @@ public CustomAttributeValuesUnion deserialize(JsonParser jp, DeserializationCont
229229 }
230230 }
231231 if (attemptParsing ) {
232- tmp = tree .traverse (jp .getCodec ()).readValueAs (List . class );
232+ tmp = tree .traverse (jp .getCodec ()).readValueAs (new TypeReference < List < Double >>() {} );
233233 // TODO: there is no validation against JSON schema constraints
234234 // (min, max, enum, pattern...), this does not perform a strict JSON
235235 // validation, which means the 'match' count may be higher than it should be.
236236 deserialized = tmp ;
237237 match ++;
238238
239- log .log (Level .FINER , "Input data matches schema 'List'" );
239+ log .log (Level .FINER , "Input data matches schema 'List<Double> '" );
240240 }
241241 } catch (Exception e ) {
242242 // deserialization failed, continue
243- log .log (Level .FINER , "Input data does not match schema 'List'" , e );
243+ log .log (Level .FINER , "Input data does not match schema 'List<Double> '" , e );
244244 }
245245
246246 CustomAttributeValuesUnion ret = new CustomAttributeValuesUnion ();
0 commit comments