Skip to content
Permalink
Browse files
8266901: Clarify the method description of Duration.toDaysPart()
Reviewed-by: bpb, rriggs, lancea, iris, scolebourne
  • Loading branch information
naotoj committed Jun 25, 2021
1 parent 35c4702 commit 223759fb8af4a28f8ff8563e438ca285a87a9f2d
Showing 1 changed file with 3 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -1260,6 +1260,8 @@ public long toNanos() {
* This is based on the standard definition of a day as 24 hours.
* <p>
* This instance is immutable and unaffected by this method call.
* @apiNote
* This method behaves exactly the same way as {@link #toDays()}.
*
* @return the number of days in the duration, may be negative
* @since 9

1 comment on commit 223759f

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 223759f Jun 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.