|
7 | 7 | import lombok.Getter; |
8 | 8 | import lombok.Setter; |
9 | 9 | import lombok.extern.slf4j.Slf4j; |
10 | | -import org.openapitools.codegen.*; |
| 10 | +import org.openapitools.codegen.CodegenConstants; |
| 11 | +import org.openapitools.codegen.CodegenModel; |
| 12 | +import org.openapitools.codegen.CodegenOperation; |
| 13 | +import org.openapitools.codegen.CodegenParameter; |
| 14 | +import org.openapitools.codegen.CodegenProperty; |
| 15 | +import org.openapitools.codegen.CliOption; |
| 16 | +import org.openapitools.codegen.SupportingFile; |
11 | 17 | import org.openapitools.codegen.config.GlobalSettings; |
12 | 18 | import org.openapitools.codegen.languages.SpringCodegen; |
13 | 19 | import org.openapitools.codegen.templating.mustache.IndentedLambda; |
@@ -171,34 +177,6 @@ public void processOpts() { |
171 | 177 | (sourceFolder + File.separator + modelPackage).replace(".", File.separator), |
172 | 178 | prehookRequestTemplate + JAVA_EXTENSION)); |
173 | 179 |
|
174 | | - if (this.additionalProperties.containsKey(USE_CLASS_LEVEL_BEAN_VALIDATION)) { |
175 | | - this.useClassLevelBeanValidation = convertPropertyToBoolean(USE_CLASS_LEVEL_BEAN_VALIDATION); |
176 | | - } |
177 | | - if (this.additionalProperties.containsKey(ADD_SERVLET_REQUEST)) { |
178 | | - this.addServletRequest = convertPropertyToBoolean(ADD_SERVLET_REQUEST); |
179 | | - } |
180 | | - if (this.additionalProperties.containsKey(ADD_BINDING_RESULT)) { |
181 | | - this.addBindingResult = convertPropertyToBoolean(ADD_BINDING_RESULT); |
182 | | - } |
183 | | - if (this.additionalProperties.containsKey(USE_LOMBOK_ANNOTATIONS)) { |
184 | | - this.useLombokAnnotations = convertPropertyToBoolean(USE_LOMBOK_ANNOTATIONS); |
185 | | - } |
186 | | - if (this.additionalProperties.containsKey(USE_WITH_MODIFIERS)) { |
187 | | - this.useWithModifiers = convertPropertyToBoolean(USE_WITH_MODIFIERS); |
188 | | - } |
189 | | - if (this.additionalProperties.containsKey(USE_PROTECTED_FIELDS)) { |
190 | | - this.additionalProperties.put("modelFieldsVisibility", "protected"); |
191 | | - } else { |
192 | | - this.additionalProperties.put("modelFieldsVisibility", "private"); |
193 | | - } |
194 | | - |
195 | | - writePropertyBack(USE_CLASS_LEVEL_BEAN_VALIDATION, this.useClassLevelBeanValidation); |
196 | | - writePropertyBack(ADD_SERVLET_REQUEST, this.addServletRequest); |
197 | | - writePropertyBack(ADD_BINDING_RESULT, this.addBindingResult); |
198 | | - writePropertyBack(USE_LOMBOK_ANNOTATIONS, this.useLombokAnnotations); |
199 | | - writePropertyBack(USE_WITH_MODIFIERS, this.useWithModifiers); |
200 | | - writePropertyBack(USE_PROTECTED_FIELDS, this.useProtectedFields); |
201 | | - |
202 | 180 | this.additionalProperties.put("indent4", new IndentedLambda(4, " ", true, true)); |
203 | 181 | this.additionalProperties.put("newLine4", new BoatSpringCodeGen.NewLineIndent(4, " ")); |
204 | 182 | this.additionalProperties.put("indent8", new IndentedLambda(8, " ", true, true)); |
|
0 commit comments