commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <j...@apache.org>
Subject [jira] Created: (COLLECTIONS-288) Javadoc: incorrect behavior explained for ListUtils.transformedList
Date Mon, 17 Mar 2008 16:35:24 GMT
Javadoc: incorrect behavior explained for ListUtils.transformedList
-------------------------------------------------------------------

                 Key: COLLECTIONS-288
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-288
             Project: Commons Collections
          Issue Type: Bug
          Components: List
            Reporter: Paul Benedict
             Fix For: 3.3


The contract stated for ListUtils.transformedList is wrong. The list is not transformed --
it decorates the existing list and transforms NEW objects -- EXISTING objects are not transformed.


Compare this to the javadoc found in MapUtils.transformedMap:
"This method returns a new map (decorating the specified map) that will transform any new
entries added to it. Existing entries in the specified map will not be transformed. "

That little missing piece of information messed me up. Just replace "map" with "list" and
append it to the existing LilstUtils javadoc.

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


Mime
View raw message