You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "falconhand (JIRA)" <ji...@apache.org> on 2007/08/29 06:11:31 UTC

[jira] Created: (COLLECTIONS-262) probably apidoc error: firstKey() and lastKey() in AbstractLinkedMap

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

                 Key: COLLECTIONS-262
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-262
             Project: Commons Collections
          Issue Type: Bug
          Components: Map
    Affects Versions: 3.2
            Reporter: falconhand


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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (COLLECTIONS-262) probably apidoc error: firstKey() and lastKey() in AbstractLinkedMap

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COLLECTIONS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed COLLECTIONS-262.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.3

I agree (even wrote a quick test to make sure). I've committed the change to the javadoc.

svn ci -m "Updating javadoc as per COLLECTIONS-262 - the firstKey and lastKey javadoc methods were back to front for parts of their description" src/java/org/apache/commons/collections/map/AbstractLinkedMap.java

Sending        src/java/org/apache/commons/collections/map/AbstractLinkedMap.java
Transmitting file data .
Committed revision 608030.

> probably apidoc error: firstKey() and lastKey() in AbstractLinkedMap
> --------------------------------------------------------------------
>
>                 Key: COLLECTIONS-262
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-262
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Map
>    Affects Versions: 3.2
>            Reporter: immars
>             Fix For: 3.3
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.