RFR: 8312019: Simplify and modernize java.util.BitSet.equals

Pavel Rappo prappo at openjdk.org
Thu Jul 13 10:57:17 UTC 2023


Please review this PR to use modern APIs and language features to simplify equals for BitSet. 

I couldn't see how to refactor hashCode using Arrays utility methods in a way that preserves its specification. So, aside from refactoring its doc comment and annotating it with `@Overrides`, I left it intact.

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

Commit messages:
 - Initial commit

Changes: https://git.openjdk.org/jdk/pull/14868/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14868&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8312019
  Stats: 22 lines in 1 file changed: 6 ins; 11 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/14868.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14868/head:pull/14868

PR: https://git.openjdk.org/jdk/pull/14868


More information about the core-libs-dev mailing list