Skip to content

Commit af8f6c2

Browse files
committed
Merge master
1 parent 9d9cb63 commit af8f6c2

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • modules/openapi-generator/src/main/java/org/openapitools/codegen/languages

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)