File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -845,15 +845,10 @@ public void preprocessOpenAPI(OpenAPI openAPI) {
845845
846846 @ Override
847847 public OperationsMap postProcessOperationsWithModels (OperationsMap objs , List <ModelMap > allModels ) {
848- if (isSpringCodegen ()) {
849- Map <String , String > newImport = Map .of ("import" , importMapping .get ("Nullable" ));
850- objs .getImports ().add (newImport );
851- }
852848 final OperationMap operations = objs .getOperations ();
853849 if (operations != null ) {
854850 final List <CodegenOperation > ops = operations .getOperation ();
855851 for (final CodegenOperation operation : ops ) {
856-
857852 final List <CodegenResponse > responses = operation .responses ;
858853 if (responses != null ) {
859854 for (final CodegenResponse resp : responses ) {
@@ -899,7 +894,6 @@ public void setIsVoid(boolean isVoid) {
899894
900895 prepareVersioningParameters (ops );
901896 handleImplicitHeaders (operation );
902-
903897 }
904898 // The tag for the controller is the first tag of the first operation
905899 final CodegenOperation firstOperation = ops .get (0 );
You can’t perform that action at this time.
0 commit comments