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

javax.swing.text.SimpleAttributeSet.equals() documentation is in error.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic
    • generic



      Name: krT82822 Date: 07/04/99


      The second half of the second sentance of the documentation
      for SimpleAttributeSet.equals() is bogus. It refers to Font
      (probably something about where it was copied from).

      (in general, the text package documentation is pretty weak)


      ---------------

      (from JDK 1.2.x docs, as of 7/4/99:)

      equals

      public boolean equals(Object obj)

            Compares this object to the specifed object. The result is true if and only if the argument is not null and is a
            Font object with the same name, style, and point size as this font.
            Parameters:
                  obj - the object to compare this font with.
            Returns:
                  true if the objects are equal; false otherwise.
            Overrides:
                  equals in class Object

      (Review ID: 48758)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: