You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before using data.get(foo) we should look up if the key exists in the map and in case it doesn't do nothing in the default setters. I've changed my own Java template to something like this:
/**
* {{#if argument}}{{argument.documentation}}{{else}}{{operation.documentation}}{{/if}}
*
* @return the {{default target.modelName @root.model.name}} class instance.
*/
public {{default target.modelName @root.model.name}} {{operation.name}}() {
{{#if argument}}
{{#unequals type 'radio'}}
if (data.containsKey("{{argument.key}})")) {
return {{operation.name}}(data.get("{{argument.key}}"));
} else {
return this;
}
}
The text was updated successfully, but these errors were encountered:
Before using
data.get(foo)
we should look up if the key exists in the map and in case it doesn't do nothing in the default setters. I've changed my own Java template to something like this:The text was updated successfully, but these errors were encountered: