8297685: Typo in NullPointerException description specified by Locale.lookup

Reviewed-by: naoto, lancea, jpai
This commit is contained in:
Justin Lu 2022-11-29 18:32:44 +00:00 committed by Naoto Sato
parent 3ce0042158
commit ae5b1f7656

View File

@ -3554,7 +3554,7 @@ public final class Locale implements Cloneable, Serializable {
* @param locales {@code Locale} instances used for matching * @param locales {@code Locale} instances used for matching
* @return the best matching {@code Locale} instance chosen based on * @return the best matching {@code Locale} instance chosen based on
* priority or weight, or {@code null} if nothing matches. * priority or weight, or {@code null} if nothing matches.
* @throws NullPointerException if {@code priorityList} or {@code tags} is * @throws NullPointerException if {@code priorityList} or {@code locales} is
* {@code null} * {@code null}
* *
* @since 1.8 * @since 1.8