New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8171382: java.time.Duration missing isPositive method #4892
Conversation
|
/csr |
@naotoj this pull request will not be integrated until the CSR request JDK-8271167 for issue JDK-8171382 has been approved. |
In the CSR, I would omit the "which is odd" from the "Problem".
and in the Solution, replace "integrity" with "completeness".
Thanks, Roger. Modified the CSR as suggested. |
* @since 18 | ||
*/ | ||
public boolean isPositive() { | ||
return (seconds | nanos) > 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to think whether this logic is correct, but I believe it is because nanos
is 32 bits and positive so won't impact the negative bit of seconds
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Stephen. Yes, nanos
is even smaller, less than 1,000,000,000
.
@naotoj This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
/integrate |
Going to push as commit efa63dc.
Your commit was automatically rebased without conflicts. |
Please review this PR to introduce
java.time.Duration.isPositive()
method. A CSR is also drafted.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4892/head:pull/4892
$ git checkout pull/4892
Update a local copy of the PR:
$ git checkout pull/4892
$ git pull https://git.openjdk.java.net/jdk pull/4892/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4892
View PR using the GUI difftool:
$ git pr show -t 4892
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4892.diff