make JsonAnySetter for dynamic properties "builder" style

This commit is contained in:
russellb337
2015-09-03 10:16:44 -07:00
parent ab6118afe4
commit 435ce7b9d5

View File

@@ -323,10 +323,12 @@ public class CodegenConfigurator {
}
@JsonAnySetter
public void addDynamicProperty(String name, Object value) {
public CodegenConfigurator addDynamicProperty(String name, Object value) {
if (value instanceof String) {
dynamicProperties.put(name, (String) value);
}
return this;
}
@JsonAnyGetter