<i18n dev> RFR: 8311188: Simplify and modernize equals and hashCode in java.text [v4]

Pavel Rappo prappo at openjdk.org
Fri Jul 7 00:42:15 UTC 2023


On Thu, 6 Jul 2023 23:38:01 GMT, Stuart Marks <smarks at openjdk.org> wrote:

> For me the issue here is that there is a bunch of lore about avoiding `Objects::equals` and it's embodied in comments like this:
> 
> > NB: Do not replace with Object.equals until JDK-8015417 is resolved.
> 
> These comments are almost exactly ten years old, and we can't seem to find any evidence showing that a slowdown occurred if `Objects::equals` were used. The comments are a "dead hand" at this point. Is there a way to demonstrate whether there is or is not any difference when using `Objects::equals`?

Agree on all of the above; this is "rumor control".

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14752#discussion_r1255067182


More information about the i18n-dev mailing list