tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1510894 - /tomee/tomee/trunk/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/cdi/SessionNormalScopeBeanHandler.java
Date Tue, 06 Aug 2013 10:16:23 GMT
Author: rmannibucau
Date: Tue Aug  6 10:16:23 2013
New Revision: 1510894

URL: http://svn.apache.org/r1510894
Log:
wrong key usage in SessionNormalScopeBeanHandler

Modified:
    tomee/tomee/trunk/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/cdi/SessionNormalScopeBeanHandler.java

Modified: tomee/tomee/trunk/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/cdi/SessionNormalScopeBeanHandler.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/cdi/SessionNormalScopeBeanHandler.java?rev=1510894&r1=1510893&r2=1510894&view=diff
==============================================================================
--- tomee/tomee/trunk/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/cdi/SessionNormalScopeBeanHandler.java
(original)
+++ tomee/tomee/trunk/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/cdi/SessionNormalScopeBeanHandler.java
Tue Aug  6 10:16:23 2013
@@ -68,10 +68,8 @@ public class SessionNormalScopeBeanHandl
         final Object webbeansInstance = getContextualInstance();
         final Map<Bean<?>, UpdateInfo> beanUpdateInfoMap = OBJECTS.get();
 
-        UpdateInfo info = beanUpdateInfoMap.get(this);
-        if (info == null) {
-            info = new UpdateInfo(bean, getBeanManager(), webbeansInstance);
-            beanUpdateInfoMap.put(bean, info);
+        if (!beanUpdateInfoMap.containsKey(bean)) {
+            beanUpdateInfoMap.put(bean, new UpdateInfo(bean, getBeanManager(), webbeansInstance));
         }
 
         return webbeansInstance;



Mime
View raw message