Skip to content

Commit

Permalink
Use Locale.ROOT in String.format
Browse files Browse the repository at this point in the history
  • Loading branch information
jimschubert committed Apr 2, 2019
1 parent da803dc commit f95715f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.openapitools.codegen.api;

import java.util.Locale;

/**
* Provides abstractions around the template engine adapter interface, for reuse by implementers.
*/
Expand All @@ -17,7 +19,7 @@ protected String[] getModifiedFileLocation(String location) {
String[] result = new String[extensions.length];
for (int i = 0; i < extensions.length; i++) {
String extension = extensions[i];
result[i] = String.format("%s.%s", getPathWithoutExtension(location), extension);
result[i] = String.format(Locale.ROOT, "%s.%s", getPathWithoutExtension(location), extension);
}
return result;
}
Expand Down

0 comments on commit f95715f

Please sign in to comment.