@@ -131,9 +131,9 @@ public Object getParameter(SettableBeanProperty prop)
131131 value = _creatorParameters [prop .getCreatorIndex ()] = _findMissing (prop );
132132 }
133133 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 ());
137137 }
138138 return value ;
139139 }
@@ -172,7 +172,7 @@ public Object[] getParameters(SettableBeanProperty[] props)
172172 if (_creatorParameters [ix ] == null ) {
173173 SettableBeanProperty prop = props [ix ];
174174 _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" ,
176176 prop .getName (), props [ix ].getCreatorIndex ());
177177 }
178178 }
@@ -191,14 +191,13 @@ protected Object _findMissing(SettableBeanProperty prop) throws JsonMappingExcep
191191 }
192192 // Second: required?
193193 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 ());
197196 }
198197 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 ());
202201 }
203202 // Third: default value
204203 JsonDeserializer <Object > deser = prop .getValueDeserializer ();
0 commit comments