Skip to content

Commit f95715f

Browse files
committed
Use Locale.ROOT in String.format
1 parent da803dc commit f95715f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/AbstractTemplatingEngineAdapter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.openapitools.codegen.api;
22

3+
import java.util.Locale;
4+
35
/**
46
* Provides abstractions around the template engine adapter interface, for reuse by implementers.
57
*/
@@ -17,7 +19,7 @@ protected String[] getModifiedFileLocation(String location) {
1719
String[] result = new String[extensions.length];
1820
for (int i = 0; i < extensions.length; i++) {
1921
String extension = extensions[i];
20-
result[i] = String.format("%s.%s", getPathWithoutExtension(location), extension);
22+
result[i] = String.format(Locale.ROOT, "%s.%s", getPathWithoutExtension(location), extension);
2123
}
2224
return result;
2325
}

0 commit comments

Comments
 (0)