RFR: 8355391: Use Double::hashCode in java.util.Locale::hashCode

2025-04-30 Thread Shaojin Wen
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. - Commit messages: - Update src/java.base/share/classes/java/util/Locale.java - Use Long::hashC

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

2025-04-30 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. src/java.base/share/classes/java/util/Locale