Cleanup mandatoryParam variable in mustache and Codegen, replaced using

-last
This commit is contained in:
Johannes Fiala
2015-12-06 12:06:23 +01:00
parent b3588da6b7
commit d9e024a7bf
3 changed files with 2 additions and 6 deletions

View File

@@ -17,9 +17,6 @@ public class CodegenModel {
// list of all required parameters
public Set<String> mandatory = new HashSet<String>();
// TODO: temporary solution to get a delimited list of default constructor parameters, should be replaced if there is a better way of injecting the mandatory parameters into the mustache templates
public String mandatoryParams;
public Set<String> imports = new HashSet<String>();
public Boolean hasVars, emptyVars, hasMoreModels, hasEnums;
public ExternalDocs externalDocs;

View File

@@ -1883,8 +1883,7 @@ public class DefaultCodegen {
}
m.mandatory = mandatory;
m.mandatoryParams = StringUtils.join(mandatory, ", ");
} else {
m.emptyVars = true;
m.hasVars = false;