Mercurial > hg > openjdk > jdk9 > jdk
changeset 17158:82ab8dec02ae
8180428: Clarify implementation note in Clock.java to match implementation changes made by JDK-8068730
Reviewed-by: dholmes, scolebourne
author | dfuchs |
---|---|
date | Tue, 23 May 2017 11:33:01 +0100 |
parents | 29bbedd4cce8 |
children | 54e8bad0022c |
files | src/java.base/share/classes/java/time/Clock.java |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.base/share/classes/java/time/Clock.java Mon May 22 11:08:26 2017 -0700 +++ b/src/java.base/share/classes/java/time/Clock.java Tue May 23 11:33:01 2017 +0100 @@ -127,10 +127,13 @@ * document whether or not they do support serialization. * * @implNote - * The clock implementation provided here is based on {@link System#currentTimeMillis()}. - * That method provides little to no guarantee about the accuracy of the clock. - * Applications requiring a more accurate clock must implement this abstract class - * themselves using a different external clock, such as an NTP server. + * The clock implementation provided here is based on the same underlying clock + * as {@link System#currentTimeMillis()}, but may have a precision finer than + * milliseconds if available. + * However, little to no guarantee is provided about the accuracy of the + * underlying clock. Applications requiring a more accurate clock must implement + * this abstract class themselves using a different external clock, such as an + * NTP server. * * @since 1.8 */