<i18n dev> RFR: 8318487: Specification of the ListFormat.equals() method can be improved [v3]
Naoto Sato
naoto at openjdk.org
Tue Oct 24 17:58:49 UTC 2023
On Tue, 24 Oct 2023 17:04:25 GMT, Joe Wang <joehw at openjdk.org> wrote:
>> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Reflecting review comments
>
> Looks fine to me.
>
> Alternatively (or more explicitly), it could be: Compares the specified object with this {@code ListFormat} for equality. Returns true if the given object is also a {@code ListFormat} and the two represent the same formats, specifically, if both {@code locale} and {@code patterns}, returned from {@link #getLocale()} and {@link #getPatterns()} respectively, are equal.
Thanks, @JoeWang-Java
In fact, your suggested style aligns with other `Format` classes, such as `DateFormat`/`NumberFormat`. Modified the wording to align with them.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16321#issuecomment-1777742029
More information about the i18n-dev
mailing list