You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by wt...@apache.org on 2018/01/12 19:36:09 UTC

svn commit: r1821026 - /myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java

Author: wtlucy
Date: Fri Jan 12 19:36:09 2018
New Revision: 1821026

URL: http://svn.apache.org/viewvc?rev=1821026&view=rev
Log:
MYFACES-4186 use ConcurrentHashMap in _ComponentAttributesMap

Modified:
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java?rev=1821026&r1=1821025&r2=1821026&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java Fri Jan 12 19:36:09 2018
@@ -26,10 +26,10 @@ import java.io.Serializable;
 import java.lang.reflect.Method;
 import java.util.Collection;
 import java.util.Collections;
-import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
 import java.util.WeakHashMap;
+import java.util.concurrent.ConcurrentHashMap;
 
 import javax.el.ValueExpression;
 import javax.faces.FacesException;
@@ -651,7 +651,7 @@ class _ComponentAttributesMap implements
                     throw new FacesException(e);
                 }
                 PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors();
-                _propertyDescriptorMap = new HashMap<String, _PropertyDescriptorHolder>();
+                _propertyDescriptorMap = new ConcurrentHashMap<String, _PropertyDescriptorHolder>();
                 for (int i = 0; i < propertyDescriptors.length; i++)
                 {
                     PropertyDescriptor propertyDescriptor = propertyDescriptors[i];