mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8311943: Cleanup usages of toLowerCase() and toUpperCase() in java.base
Reviewed-by: naoto
This commit is contained in:
parent
13f6450e2e
commit
b32d6411c4
11 changed files with 44 additions and 38 deletions
|
@ -4725,7 +4725,7 @@ public final class DateTimeFormatterBuilder {
|
|||
* @return the position after the parse
|
||||
*/
|
||||
private int parseOffsetBased(DateTimeParseContext context, CharSequence text, int prefixPos, int position, OffsetIdPrinterParser parser) {
|
||||
String prefix = text.subSequence(prefixPos, position).toString().toUpperCase();
|
||||
String prefix = text.subSequence(prefixPos, position).toString().toUpperCase(Locale.ROOT);
|
||||
if (position >= text.length()) {
|
||||
context.setParsed(ZoneId.of(prefix));
|
||||
return position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue