> Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8315720) > which refines the spec of `equals()` and `hashCode()` in `java.text.Format` > related classes. > > The current spec for most of these methods is either "_Overrides > <method_name>_" or are incomplete/wrong (i.e. see `ChoiceFormat`). > > This fix adjusts the spec to provide a consistent definition for the > overridden methods and specify what is being compared/used to generate a hash > code value. > > For implementations that use at most a few fields, the values are stated, > otherwise a more general term is used as a substitution (i.e. see > `DecimalFormat`).
Justin Lu has updated the pull request incrementally with two additional commits since the last revision: - CSR review: Adjust equals wording, improve correctness of hashCode definitions - CSR review: replace implNote with implSpec ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15459/files - new: https://git.openjdk.org/jdk/pull/15459/files/e322412c..0b0aeb51 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15459&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15459&range=02-03 Stats: 53 lines in 9 files changed: 8 ins; 0 del; 45 mod Patch: https://git.openjdk.org/jdk/pull/15459.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15459/head:pull/15459 PR: https://git.openjdk.org/jdk/pull/15459