Integrated: 8310033: Clarify return value of Java Time compareTo methods
Roger Riggs
rriggs at openjdk.org
Thu Jul 27 14:04:59 UTC 2023
On Wed, 14 Jun 2023 20:35:54 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 8650026f
Author: Roger Riggs <rriggs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/8650026ff16e5c5eff897f9fd39c0c35fd8b7367
Stats: 84 lines in 17 files changed: 49 ins; 0 del; 35 mod
8310033: Clarify return value of Java Time compareTo methods
Reviewed-by: bpb, scolebourne, prappo, naoto
-------------
PR: https://git.openjdk.org/jdk/pull/14479
More information about the core-libs-dev
mailing list