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

Add missing periods in docs for java.awt.Font

XMLWordPrintable

      There are missing periods in the specification for the Font class:

      lines 1612-1614 [1]
           * obtained. The {@code String} value of this property is then
           * interpreted as a {@code Font} object according to the
           * specification of {@code Font.decode(String)}

      lines 1782-1783 [2]
           * The property value should be one of the forms accepted by
           * {@code Font.decode(String)}

      These problems are found [3][4] during code review for JDK-8338411 in PR 21498 [5].

      [1] https://github.com/openjdk/jdk/blob/5995786dbd69ed11dd1cacb2a3ac86e3e6f43ab7/src/java.desktop/share/classes/java/awt/Font.java#L1612-L1614
      [2] https://github.com/openjdk/jdk/blob/5995786dbd69ed11dd1cacb2a3ac86e3e6f43ab7/src/java.desktop/share/classes/java/awt/Font.java#L1782-L1783
      [3] https://github.com/openjdk/jdk/pull/21498#discussion_r1815180719
      [4] https://github.com/openjdk/jdk/pull/21498#discussion_r1815185648
      [5] https://github.com/openjdk/jdk/pull/21498

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: