commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Closed: (COLLECTIONS-262) probably apidoc error: firstKey() and lastKey() in AbstractLinkedMap
Date Wed, 02 Jan 2008 07:25:34 GMT


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/

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

> probably apidoc error: firstKey() and lastKey() in AbstractLinkedMap
> --------------------------------------------------------------------
>                 Key: COLLECTIONS-262
>                 URL:
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Map
>    Affects Versions: 3.2
>            Reporter: immars
>             Fix For: 3.3
> In the apidoc or source of,
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.

View raw message