8358449: Locale.getISOCountries does not specify the returned set is unmodifiable

Reviewed-by: naoto
This commit is contained in:
Justin Lu 2025-06-04 16:40:22 +00:00
parent ef47635d5a
commit 8a79ac8863

View File

@ -1310,7 +1310,7 @@ public final class Locale implements Cloneable, Serializable {
}
/**
* {@return a {@code Set} of ISO3166 country codes for the specified type}
* {@return an unmodifiable {@code Set} of ISO3166 country codes for the specified type}
*
* @param type {@link Locale.IsoCountryCode} specified ISO code type.
* @see java.util.Locale.IsoCountryCode