Remove unnecessary override (#1906)

This commit is contained in:
Akihito Nakano 2019-01-14 21:58:51 +09:00 committed by William Cheng
parent 7674d11d75
commit b4fecd9f9e
2 changed files with 0 additions and 16 deletions

View File

@ -590,14 +590,6 @@ public class CLibcurlClientCodegen extends DefaultCodegen implements CodegenConf
this.projectName = underscore(projectName.toLowerCase(Locale.ROOT)); this.projectName = underscore(projectName.toLowerCase(Locale.ROOT));
} }
@Override
public boolean shouldOverwrite(String filename) {
// skip spec file as the file might have been updated with new test cases
return !(skipOverwrite && new File(filename).exists());
//
//return super.shouldOverwrite(filename) && !filename.endsWith("_spec.rb");
}
@Override @Override
public String escapeQuotationMark(String input) { public String escapeQuotationMark(String input) {
// remove ' to avoid code injection // remove ' to avoid code injection

View File

@ -612,14 +612,6 @@ public class RubyClientCodegen extends AbstractRubyCodegen {
this.gemAuthorEmail = gemAuthorEmail; this.gemAuthorEmail = gemAuthorEmail;
} }
@Override
public boolean shouldOverwrite(String filename) {
// skip spec file as the file might have been updated with new test cases
return !(skipOverwrite && new File(filename).exists());
//
//return super.shouldOverwrite(filename) && !filename.endsWith("_spec.rb");
}
@Override @Override
protected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, Schema schema) { protected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, Schema schema) {
final Schema additionalProperties = ModelUtils.getAdditionalProperties(schema); final Schema additionalProperties = ModelUtils.getAdditionalProperties(schema);