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

Sentence is repeated in javadoc for "Font.decode" method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.2
    • client-libs
    • 2d
    • x86
    • windows_xp

      Name: rl43681 Date: 06/04/2003


      A DESCRIPTION OF THE PROBLEM :
      In the documentation for the static "decode" method of Font, the following sentence is repeated twice in a row:
      "If str is null, a new Font is returned with the family name "dialog", a size of 12 and a PLAIN style."


      The last sentence in this paragraph:
       The default size is 12 and the default style is PLAIN. If you don't specify a valid size, the returned Font has a size of 12. If you don't specify a valid style, the returned Font has a style of PLAIN. If you do not provide a valid font family name in the str argument, this method still returns a valid font with a family name of "dialog". To determine what font family names are available on your system, use the GraphicsEnvironment.getAvailableFontFamilyNames() method. If str is null, a new Font is returned with the family name "dialog", a size of 12 and a PLAIN style. If str is null, a new Font is returned with the name "dialog", a size of 12 and a PLAIN style.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The sentence is fine, but should only appear once.

      ACTUAL -
      The sentence appears twice in a row.

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Font.html#decode(java.lang.String)
      (Review ID: 187063)
      ======================================================================

            Unassigned Unassigned
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: