mayya-sharipova opened a new pull request, #16261: URL: https://github.com/apache/lucene/pull/16261
- Fix violation: inherited hashCode was identity-based (char[].hashCode()), breaking equals/hashCode contract - Override hashCode() with content-stable implementation using Arrays.hashCode() per element - Incorporate ignoreCase into both equals() and hashCode() so sets differing only in case mode are treated as unequal - Expose ignoreCase via isIgnoreCase() on CharArrayMap and CharArraySet Potential breakage: code comparing two CharArraySet instances with same words but different ignoreCase will now see them as unequal; code using CharArraySet as a map key will observe different bucketing. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
