mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8266901: Clarify the method description of Duration.toDaysPart()
Reviewed-by: bpb, rriggs, lancea, iris, scolebourne
This commit is contained in:
parent
35c4702055
commit
223759fb8a
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1260,6 +1260,8 @@ public final class Duration
|
||||||
* This is based on the standard definition of a day as 24 hours.
|
* This is based on the standard definition of a day as 24 hours.
|
||||||
* <p>
|
* <p>
|
||||||
* This instance is immutable and unaffected by this method call.
|
* 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
|
* @return the number of days in the duration, may be negative
|
||||||
* @since 9
|
* @since 9
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue