Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-262

probably apidoc error: firstKey() and lastKey() in AbstractLinkedMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2
    • 4.0-alpha1, 4.0
    • Map
    • None

    Description

      In the apidoc or source of org.apache.commons.collections.map.AbstractLinkedMap.firstKey(), it is said that this method "Gets the first key in the map, which is the most recently inserted.", which is exactly the actual behavior of lastKey(), and vice versa.

      So I think there is a typo with this class' javadoc.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              immars Lisen Mu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: