commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COLLECTIONS-453) findBugs Warnings: several classes in package functors/iterators/keyvalue may expose their internal representation
Date Tue, 30 Apr 2013 21:18:16 GMT

    [ https://issues.apache.org/jira/browse/COLLECTIONS-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645997#comment-13645997
] 

Thomas Neidhart commented on COLLECTIONS-453:
---------------------------------------------

Added exclude filter for MultiKey in r1477834.
                
> findBugs Warnings: several classes in package functors/iterators/keyvalue may expose
their internal representation
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-453
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-453
>             Project: Commons Collections
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Thomas Neidhart
>             Fix For: 4.0
>
>
> Several classes (e.g. SwitchTransformer) take in their constructor an array as input
which is not copied/cloned.
> Thus its internal representation may be changed externally.
> The corresponding factory methods *do* copy the input arguments thus we have two choices:
>  * move the copy from the factory methods to the ctors
>  * make the ctors private to prevent their use

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message