Skip to content

Commit f5b29b9

Browse files
committed
remove check
1 parent 527ba5c commit f5b29b9

1 file changed

Lines changed: 1 addition & 3 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,7 @@ public void processOpts() {
524524
if (isUseSpringBoot4()) {
525525
setUseSpringBoot3(false);
526526
}
527-
if(isUseSpringBoot3() && isUseSpringBoot4()){
528-
throw new IllegalArgumentException("Choose between Spring Boot 3 and Spring Boot 4");
529-
}
527+
530528
if (isUseSpringBoot3() || isUseSpringBoot4()) {
531529
if (AnnotationLibrary.SWAGGER1.equals(getAnnotationLibrary())) {
532530
throw new IllegalArgumentException(AnnotationLibrary.SWAGGER1.getPropertyName() + " is not supported with Spring Boot > 3.x");

0 commit comments

Comments
 (0)