@@ -131,9 +131,9 @@ public Object getParameter(SettableBeanProperty prop)
131
131
value = _creatorParameters [prop .getCreatorIndex ()] = _findMissing (prop );
132
132
}
133
133
if (value == null && _context .isEnabled (DeserializationFeature .FAIL_ON_NULL_CREATOR_PROPERTIES )) {
134
- return _context .reportInputMismatch (prop , String . format (
135
- "Null value for creator property '%s'; DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS enabled" ,
136
- prop .getName (), prop .getCreatorIndex ())) ;
134
+ return _context .reportInputMismatch (prop ,
135
+ "Null value for creator property '%s' (index %d); ` DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS` enabled" ,
136
+ prop .getName (), prop .getCreatorIndex ());
137
137
}
138
138
return value ;
139
139
}
@@ -172,7 +172,7 @@ public Object[] getParameters(SettableBeanProperty[] props)
172
172
if (_creatorParameters [ix ] == null ) {
173
173
SettableBeanProperty prop = props [ix ];
174
174
_context .reportInputMismatch (prop .getType (),
175
- "Null value for creator property '%s' (index %d); DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS enabled" ,
175
+ "Null value for creator property '%s' (index %d); ` DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS` enabled" ,
176
176
prop .getName (), props [ix ].getCreatorIndex ());
177
177
}
178
178
}
@@ -191,14 +191,13 @@ protected Object _findMissing(SettableBeanProperty prop) throws JsonMappingExcep
191
191
}
192
192
// Second: required?
193
193
if (prop .isRequired ()) {
194
- _context .reportInputMismatch (prop , String .format (
195
- "Missing required creator property '%s' (index %d)" ,
196
- prop .getName (), prop .getCreatorIndex ()));
194
+ _context .reportInputMismatch (prop , "Missing required creator property '%s' (index %d)" ,
195
+ prop .getName (), prop .getCreatorIndex ());
197
196
}
198
197
if (_context .isEnabled (DeserializationFeature .FAIL_ON_MISSING_CREATOR_PROPERTIES )) {
199
- _context .reportInputMismatch (prop , String . format (
200
- "Missing creator property '%s' (index %d); DeserializationFeature.FAIL_ON_MISSING_CREATOR_PROPERTIES enabled" ,
201
- prop .getName (), prop .getCreatorIndex ())) ;
198
+ _context .reportInputMismatch (prop ,
199
+ "Missing creator property '%s' (index %d); ` DeserializationFeature.FAIL_ON_MISSING_CREATOR_PROPERTIES` enabled" ,
200
+ prop .getName (), prop .getCreatorIndex ());
202
201
}
203
202
// Third: default value
204
203
JsonDeserializer <Object > deser = prop .getValueDeserializer ();
0 commit comments