openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r758930 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationManager.java
Date Thu, 26 Mar 2009 23:50:07 GMT
Author: gerdogdu
Date: Thu Mar 26 23:50:06 2009
New Revision: 758930

URL: http://svn.apache.org/viewvc?rev=758930&view=rev
Log:
Update for thread safe. thanks James Carman.

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationManager.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationManager.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationManager.java?rev=758930&r1=758929&r2=758930&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationManager.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/conversation/ConversationManager.java
Thu Mar 26 23:50:06 2009
@@ -33,18 +33,16 @@
 
     public ConversationManager()
     {
-
+        if(conversations == null)
+        {
+            conversations = new ConcurrentHashMap<Conversation, ConversationContext>();
  
+        }
     }
 
     public static ConversationManager getInstance()
     {
         ConversationManager manager = (ConversationManager) WebBeansFinder.getSingletonInstance(WebBeansFinder.SINGLETON_CONVERSATION_MANAGER);
         
-        if(manager.conversations == null)
-        {
-            manager.conversations = new ConcurrentHashMap<Conversation, ConversationContext>();
  
-        }
-
         return manager;
     }
 



Mime
View raw message