8266901: Clarify the method description of Duration.toDaysPart()

Reviewed-by: bpb, rriggs, lancea, iris, scolebourne
This commit is contained in:
Naoto Sato 2021-06-25 18:25:57 +00:00
parent 35c4702055
commit 223759fb8a

View file

@ -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