Skip to content

Commit f0f0d7c

Browse files
committed
Fix build (using Locale.ROOT)
1 parent 528e742 commit f0f0d7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,7 +2139,7 @@ private void doParse() {
21392139
operationIdFilters = parsedFilters;
21402140
} else if (METHOD.equals(filterKey)) {
21412141
methodFilters = parsedFilters.stream()
2142-
.map(String::toUpperCase)
2142+
.map(method -> method.toUpperCase(Locale.ROOT))
21432143
.map(PathItem.HttpMethod::valueOf)
21442144
.collect(Collectors.toSet());
21452145
} else if (TAG.equals(filterKey)) {
@@ -2215,7 +2215,7 @@ public void apply(String path, PathItem pathItem, Map<PathItem.HttpMethod, Opera
22152215
}
22162216

22172217
private String getOperationInfo(String path, PathItem pathItem, PathItem.HttpMethod method, Operation operation) {
2218-
return String.format("%s %s (operationId: %s)", method, path, operation.getOperationId());
2218+
return String.format(Locale.ROOT, "%s %s (operationId: %s)", method, path, operation.getOperationId());
22192219
}
22202220

22212221
protected boolean useVendorExtensions(Operation operation) {

0 commit comments

Comments
 (0)