@@ -126,27 +126,6 @@ public String toApiName(String name) {
126126 return camelize (this .apiNamePrefix + "_" + name + "_" + this .apiNameSuffix );
127127 }
128128
129-
130- /**
131- * Centralizes the handling of configuration booleans and updates additionalProperties accordingly.
132- */
133- private void handleConfigBooleans () {
134- this .useClassLevelBeanValidation = convertPropertyToBoolean (USE_CLASS_LEVEL_BEAN_VALIDATION );
135- this .addServletRequest = convertPropertyToBoolean (ADD_SERVLET_REQUEST );
136- this .addBindingResult = convertPropertyToBoolean (ADD_BINDING_RESULT );
137- this .useLombokAnnotations = convertPropertyToBoolean (USE_LOMBOK_ANNOTATIONS );
138- this .useWithModifiers = convertPropertyToBoolean (USE_WITH_MODIFIERS );
139- this .useProtectedFields = convertPropertyToBoolean (USE_PROTECTED_FIELDS );
140-
141- this .additionalProperties .put (USE_CLASS_LEVEL_BEAN_VALIDATION , this .useClassLevelBeanValidation );
142- this .additionalProperties .put (ADD_SERVLET_REQUEST , this .addServletRequest );
143- this .additionalProperties .put (ADD_BINDING_RESULT , this .addBindingResult );
144- this .additionalProperties .put (USE_LOMBOK_ANNOTATIONS , this .useLombokAnnotations );
145- this .additionalProperties .put (USE_WITH_MODIFIERS , this .useWithModifiers );
146- this .additionalProperties .put (USE_PROTECTED_FIELDS , this .useProtectedFields );
147- this .additionalProperties .put ("modelFieldsVisibility" , this .useProtectedFields ? "protected" : "private" );
148- }
149-
150129 @ Override
151130 public void processOpts () {
152131 super .processOpts ();
@@ -188,8 +167,6 @@ public void processOpts() {
188167 this .supportingFiles .add (new SupportingFile (prehookRequestTemplate + MUSTACHE_EXTENSION ,
189168 (sourceFolder + File .separator + modelPackage ).replace ("." , File .separator ),
190169 prehookRequestTemplate + JAVA_EXTENSION ));
191- // Centralized config boolean handling
192- handleConfigBooleans ();
193170 this .additionalProperties .put ("indent4" , new IndentedLambda (4 , " " , true , true ));
194171 this .additionalProperties .put ("newLine4" , new BoatSpringCodeGen .NewLineIndent (4 , " " ));
195172 this .additionalProperties .put ("indent8" , new IndentedLambda (8 , " " , true , true ));
0 commit comments