You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/resources/Java/libraries/jersey2/oneof_model.mustache
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ import java.util.logging.Logger;
6
6
import java.util.ArrayList;
7
7
import java.util.Collections;
8
8
import java.util.HashSet;
9
+
import java.util.Locale;
9
10
10
11
import com.fasterxml.jackson.core.JsonGenerator;
11
12
import com.fasterxml.jackson.core.JsonParser;
@@ -70,7 +71,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
70
71
return new{{classname}};
71
72
{{/mappedModels}}
72
73
default:
73
-
log.log(Level.WARNING, String.format("Failed to lookup discriminator value `%s` for {{classname}}. Possible values:{{#mappedModels}} {{{mappingName}}}{{/mappedModels}}", discriminatorValue));
74
+
log.log(Level.WARNING, String.format(Locale.ROOT, "Failed to lookup discriminator value `%s` for {{classname}}. Possible values:{{#mappedModels}} {{{mappingName}}}{{/mappedModels}}", discriminatorValue));
74
75
}
75
76
76
77
{{/discriminator}}
@@ -157,7 +158,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
157
158
ret.setActualInstance(deserialized);
158
159
return ret;
159
160
}
160
-
throw new IOException(String.format("Failed deserialization for {{classname}}: %d classes match result, expected 1", match));
161
+
throw new IOException(String.format(Locale.ROOT, "Failed deserialization for {{classname}}: %d classes match result, expected 1", match));
0 commit comments