java.time.Clock$TickClock wrong javadoc

Steven Schlansker stevenschlansker at gmail.com
Mon Sep 22 23:52:56 UTC 2014


Hi core-libs-dev,

Quick note that it seems that the Javadoc for Clock$TickClock has copypasta from Clock$OffsetClock.
Not a huge deal for a non-public class but probably worth fixing.

http://hg.openjdk.java.net/jdk9/client/jdk/file/5edbebb72540/src/java.base/share/classes/java/time/Clock.java

    /**
     * Implementation of a clock that adds an offset to an underlying clock.
     */
    static final class OffsetClock extends Clock implements Serializable {

    /**
     * Implementation of a clock that adds an offset to an underlying clock.
     */
    static final class TickClock extends Clock implements Serializable {




More information about the core-libs-dev mailing list