From ca426485a23f5e875a608410567de06e84413b78 Mon Sep 17 00:00:00 2001 From: Joe Schafer Date: Mon, 22 Jan 2018 01:30:07 -0800 Subject: [PATCH] Add string format specifier for getParameter Discovered inadvertently when using Bazel to compile the code-base: external/com_github_fasterxml_jackson_databind/src/main/java/com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.java:134: error: [FormatString] extra format arguments: used 1, provided 2 return _context.reportInputMismatch(prop, String.format( --- .../jackson/databind/deser/impl/PropertyValueBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.java b/src/main/java/com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.java index 068d08b4d3..918f557cf7 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.java @@ -132,7 +132,7 @@ public Object getParameter(SettableBeanProperty prop) } if (value == null && _context.isEnabled(DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES)) { return _context.reportInputMismatch(prop, String.format( - "Null value for creator property '%s'; DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS enabled", + "Null value for creator property '%s' at index %d; DeserializationFeature.FAIL_ON_NULL_FOR_CREATOR_PARAMETERS enabled", prop.getName(), prop.getCreatorIndex())); } return value;