Skip to content

Commit 18d9521

Browse files
Narbe66Copilot
andauthored
Update modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7439ae6 commit 18d9521

1 file changed

Lines changed: 1 addition & 2 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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,7 @@ public void preprocessOpenAPI(OpenAPI openAPI) {
757757
value.put("tag", tag);
758758
tags.add(value);
759759
}
760-
if (!operation.getTags()
761-
.isEmpty()) {
760+
if (!operation.getTags().isEmpty()) {
762761
final String tag = operation.getTags().get(0);
763762
operation.setTags(Collections.singletonList(tag));
764763
}

0 commit comments

Comments
 (0)