OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.63k stars 6.29k forks source link

Avoid UnsupportedEncodingException by design, replacing magic string "UTF-8" with StandardCharsets.UTF_8 #18851

Closed Philzen closed 1 month ago

Philzen commented 1 month ago

This makes for much more concise code :smiley:

Unfortunately that API is not available in Java 8, so most templates will have to stay as they are.

PR checklist

Philzen commented 1 month ago

@borsch @wing328 Anybody up for a quick review?

wing328 commented 1 month ago

let me review over the weekend.

thanks again for the PR

have a nice weekend

wing328 commented 1 month ago

lgtm. let's give it a try