[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Updated] (COLLECTIONS-453) findBugs Warnings: several classes in package functors may expose
From:       "Thomas Neidhart (JIRA)" <jira () apache ! org>
Date:       2013-04-30 21:18:16
Message-ID: JIRA.12645020.1367065431914.250673.1367356696734 () arcas
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/COLLECTIONS-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Thomas Neidhart updated COLLECTIONS-453:
----------------------------------------

    Summary: findBugs Warnings: several classes in package functors may expose their \
internal representation  (was: findBugs Warnings: several classes in package \
functors/iterators/keyvalue may expose their internal representation)  
> findBugs Warnings: several classes in package functors 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic