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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 16
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b19
    • CPU:
      x86
    • OS:
      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: