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:30:06 UTC
svn commit: r1821023 -
/myfaces/core/branches/2.1.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
Author: wtlucy
Date: Fri Jan 12 19:30:06 2018
New Revision: 1821023
URL: http://svn.apache.org/viewvc?rev=1821023&view=rev
Log:
MYFACES-4186 use ConcurrentHashMap in _ComponentAttributesMap
Modified:
myfaces/core/branches/2.1.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
Modified: myfaces/core/branches/2.1.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.1.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java?rev=1821023&r1=1821022&r2=1821023&view=diff
==============================================================================
--- myfaces/core/branches/2.1.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java (original)
+++ myfaces/core/branches/2.1.x/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java Fri Jan 12 19:30:06 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;
@@ -638,7 +638,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];