db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1348314 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java
Date Sat, 09 Jun 2012 03:44:44 GMT
Author: tfischer
Date: Sat Jun  9 03:44:43 2012
New Revision: 1348314

URL: http://svn.apache.org/viewvc?rev=1348314&view=rev
Log:
fix synchronization issue found by findbugs

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java?rev=1348314&r1=1348313&r2=1348314&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java (original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/Torque.java Sat
Jun  9 03:44:43 2012
@@ -100,7 +100,7 @@ public final class Torque
      *
      * @return Our singleton.
      */
-    public static TorqueInstance getInstance()
+    public static synchronized TorqueInstance getInstance()
     {
         if (torqueSingleton == null)
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message