8285001: Simplify StringLatin1.regionMatches

Reviewed-by: rriggs, naoto
This commit is contained in:
Claes Redestad 2022-04-19 20:29:16 +00:00
parent 5d1ec54d6c
commit e307bc8694
3 changed files with 92 additions and 7 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -398,9 +398,6 @@ final class StringLatin1 {
if (u1 == u2) {
continue;
}
if (Character.toLowerCase(u1) == Character.toLowerCase(u2)) {
continue;
}
return false;
}
return true;