Thread-safety and code-safety issue in BeanMap
----------------------------------------------

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


BeanMap declares the following static field:

{code}
public static HashMap defaultTransformers = new HashMap();
{code}

This is unsafe, as any code can change the map. The map is not currently used 
outside the class; it should be made private and final, as it is not intended 
to be used except within the class.

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

Reply via email to