Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8222672

Add @since tag to JapaneseEra.REIWA

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Withdrawn
    • Icon: P3 P3
    • 13
    • core-libs
    • None
    • minimal
    • This is a doc change.
    • Java API
    • SE

      Summary

      Add @since tag for the field JapaneseEra.REIWA

      Problem

      Without a @since tag, users would think JapaneseEra.REIWA field had been declared public since the class' inception (JDK8).

      Solution

      Explicitly mention that the field is public since JDK13 with a @since tag.

      Specification

      Change the field description of java.time.chrono.JapaneseEra.REIWA from:

      /**
       * The singleton instance for the 'Reiwa' era (2019-05-01 - )
       * which has the value 3. The end date of this era is not specified, unless
       * the Japanese Government defines it.
       */

      to:

      /**
       * The singleton instance for the 'Reiwa' era (2019-05-01 - )
       * which has the value 3. The end date of this era is not specified, unless
       * the Japanese Government defines it.
       *
       * @since 13
       */

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: