On Wed, 19 Jul 2023 15:10:45 GMT, Pavel Rappo <pra...@openjdk.org> wrote:

> > BitSet#equals
> 
> Did you mean BitSet#hashCode?

No. BitSet#equals uses the private fields and methods of its argument, which OO 
purists would never allow.
If the other is a subclass with a different private representation, this code 
would fail.
(Don't fix it!)

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

PR Comment: https://git.openjdk.org/jdk/pull/14868#issuecomment-1642462274

Reply via email to