Re: RFR: 8356021: Use Double::hashCode in java.util.Locale::hashCode

2025-05-01 Thread Shaojin Wen
On Thu, 1 May 2025 16:27:17 GMT, Naoto Sato wrote: >> Similar to #24959, java.util.Locale.hashCode can also make the same >> improvement. >> >> Replace manual bitwise operations in hashCode implementations of >> java.util.Locale with Double::hashCode. > > Thanks for the fix. Even though the fi

Re: RFR: 8356021: Use Double::hashCode in java.util.Locale::hashCode

2025-05-01 Thread Naoto Sato
On Wed, 30 Apr 2025 18:01:08 GMT, Shaojin Wen wrote: > Similar to #24959, java.util.Locale.hashCode can also make the same > improvement. > > Replace manual bitwise operations in hashCode implementations of > java.util.Locale with Double::hashCode. Thanks for the fix. Even though the fix is t

Re: RFR: 8356021: Use Double::hashCode in java.util.Locale::hashCode

2025-05-01 Thread Chen Liang
On Wed, 30 Apr 2025 18:01:08 GMT, Shaojin Wen wrote: > Similar to #24959, java.util.Locale.hashCode can also make the same > improvement. > > Replace manual bitwise operations in hashCode implementations of > java.util.Locale with Double::hashCode. Thanks for this cleanup, indeed equivalent.

Re: RFR: 8356021: Use Double::hashCode in java.util.Locale::hashCode

2025-05-01 Thread Roger Riggs
On Wed, 30 Apr 2025 18:01:08 GMT, Shaojin Wen wrote: > Similar to #24959, java.util.Locale.hashCode can also make the same > improvement. > > Replace manual bitwise operations in hashCode implementations of > java.util.Locale with Double::hashCode. lgltm - Marked as reviewed by