RFR: 8310033: Clarify return value of Java Time compareTo methods [v8]
Roger Riggs
rriggs at openjdk.org
Fri Jul 21 15:57:00 UTC 2023
> In java.time packages, clarify timeline order javadoc to mention "before" and "after" in the value of the `compareTo` method return values.
> Add javadoc @see tags to isBefore and isAfter methods
>
> Replace use of "negative" and positive with "less than zero" and "greater than zero" in javadoc @return
> The term "positive" is ambiguous, zero is considered positive and indicates equality.
Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
Corrected descriptions with respect to chronology and the concrete temporary type.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/14479/files
- new: https://git.openjdk.org/jdk/pull/14479/files/1d39e2d4..1f7ba75d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=14479&range=07
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=14479&range=06-07
Stats: 10 lines in 4 files changed: 3 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/14479.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14479/head:pull/14479
PR: https://git.openjdk.org/jdk/pull/14479
More information about the core-libs-dev
mailing list