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

Spelling error in javadoc for javax.swing.tree.TreeModel

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P5
    • Resolution: Fixed
    • 6
    • 16
    • client-libs
    • b19
    • x86
    • windows_xp

    Description

      A DESCRIPTION OF THE PROBLEM :
        From the interface documentation for javax.swing.tree.TreeModel:

      "If a TreeModel returns the same object, as compared by equals, at two different indices under the same parent __than__ the resulting TreePath objects will be considered equal as well."

      Should be "then" not "than".

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      If a TreeModel returns the same object, as compared by equals, at two different indices under the same parent then the resulting TreePath objects will be considered equal as well.
      ACTUAL -
      If a TreeModel returns the same object, as compared by equals, at two different indices under the same parent than the resulting TreePath objects will be considered equal as well.

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/javase/6/docs/api/javax/swing/tree/TreeModel.html

      Attachments

        Issue Links

          Activity

            People

              psadhukhan Prasanta Sadhukhan
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: