You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2007/03/22 22:02:39 UTC
svn commit: r521462 -
/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/platform/AbstractIsolationLayer.java
Author: danj
Date: Thu Mar 22 14:02:38 2007
New Revision: 521462
URL: http://svn.apache.org/viewvc?view=rev&rev=521462
Log:
sanity check - make sure initialization only happens once.
Modified:
webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/platform/AbstractIsolationLayer.java
Modified: webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/platform/AbstractIsolationLayer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/platform/AbstractIsolationLayer.java?view=diff&rev=521462&r1=521461&r2=521462
==============================================================================
--- webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/platform/AbstractIsolationLayer.java (original)
+++ webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/platform/AbstractIsolationLayer.java Thu Mar 22 14:02:38 2007
@@ -118,6 +118,12 @@
public void initialize()
{
//
+ // sanity check - make sure we only initialize once
+ //
+ if (hasBeenInitialized())
+ return;
+
+ //
// this flag is never modified anywhere else, so we can read it
// w/o worrying about race conditions
//
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org