Skip to content

Commit 8ff1aca

Browse files
lwlee2608wing328
authored andcommitted
fix when unhandledException=false does not take effect (#4543)
1 parent 5238597 commit 8ff1aca

File tree

1 file changed

+1
-2
lines changed
  • modules/openapi-generator/src/main/java/org/openapitools/codegen/languages

1 file changed

+1
-2
lines changed

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
@@ -305,9 +305,8 @@ public void processOpts() {
305305

306306
if (additionalProperties.containsKey(UNHANDLED_EXCEPTION_HANDLING)) {
307307
this.setUnhandledException(Boolean.valueOf(additionalProperties.get(UNHANDLED_EXCEPTION_HANDLING).toString()));
308-
} else {
309-
additionalProperties.put(UNHANDLED_EXCEPTION_HANDLING, this.isUnhandledException());
310308
}
309+
additionalProperties.put(UNHANDLED_EXCEPTION_HANDLING, this.isUnhandledException());
311310

312311
typeMapping.put("file", "Resource");
313312
importMapping.put("Resource", "org.springframework.core.io.Resource");

0 commit comments

Comments
 (0)