Skip to content

Commit a0d6aac

Browse files
committed
Do not use Locale.ROOT
1 parent 7d11e76 commit a0d6aac

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/features/DocumentationProviderFeatures.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.util.Arrays;
44
import java.util.Collections;
55
import java.util.List;
6-
import java.util.Locale;
76
import java.util.Objects;
87

98
/**
@@ -91,7 +90,7 @@ enum DocumentationProvider {
9190
}
9291

9392
public static DocumentationProvider ofCliOption(String optVal) {
94-
optVal = Objects.requireNonNull(optVal).toUpperCase(Locale.ROOT);
93+
optVal = Objects.requireNonNull(optVal).toUpperCase();
9594
return valueOf(optVal);
9695
}
9796

@@ -121,7 +120,7 @@ public List<AnnotationLibrary> supportedAnnotationLibraries() {
121120
}
122121

123122
public String toCliOptValue() {
124-
return name().toLowerCase(Locale.ROOT);
123+
return name().toLowerCase();
125124
}
126125
}
127126

@@ -141,7 +140,7 @@ enum AnnotationLibrary {
141140
private final String description;
142141

143142
public static AnnotationLibrary ofCliOption(String optVal) {
144-
optVal = Objects.requireNonNull(optVal).toUpperCase(Locale.ROOT);
143+
optVal = Objects.requireNonNull(optVal).toUpperCase();
145144
return valueOf(optVal);
146145
}
147146

@@ -164,7 +163,7 @@ public String getDescription() {
164163
}
165164

166165
public String toCliOptValue() {
167-
return name().toLowerCase(Locale.ROOT);
166+
return name().toLowerCase();
168167
}
169168
}
170169
}

0 commit comments

Comments
 (0)