[jboss-svn-commits] JBL Code SVN: r15229 - labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/atsintegration/classes/com/arjuna/ats/jbossatx/jta.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Sep 19 05:11:31 EDT 2007


Author: jhalliday
Date: 2007-09-19 05:11:31 -0400 (Wed, 19 Sep 2007)
New Revision: 15229

Modified:
   labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerDelegate.java
Log:
Oops, using java 1.5 language features is naughty. reverted code to the dark ages. JBTM-289.


Modified: labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerDelegate.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerDelegate.java	2007-09-19 08:19:49 UTC (rev 15228)
+++ labs/jbosstm/branches/JBOSSTS_4_2_3_GA_SP/atsintegration/classes/com/arjuna/ats/jbossatx/jta/TransactionManagerDelegate.java	2007-09-19 09:11:31 UTC (rev 15229)
@@ -197,14 +197,14 @@
     private TransactionLocalLock findLock(final TransactionLocal local, final Transaction transaction) {
 
         TransactionImple transactionImple = (TransactionImple) transaction;
-        Map<TransactionLocal, TransactionLocalLock> locks;
+        Map locks; // <TransactionLocal, TransactionLocalLock>
         // ideally for performance we should sync on the tx instance itself but that may have nasty
         // side effects so we use something else as the lock object for the sync block
         synchronized (LOCKS_MAP) {
             // ensure there is a holder for lock storage on the given tx instance.
             locks = (Map) transactionImple.getTxLocalResource(LOCKS_MAP);
             if (locks == null) {
-                locks = new HashMap<TransactionLocal, TransactionLocalLock>();
+                locks = new HashMap(); // <TransactionLocal, TransactionLocalLock>
                 transactionImple.putTxLocalResource(LOCKS_MAP, locks);
             }
         }
@@ -212,7 +212,7 @@
         TransactionLocalLock transactionLocalLock;
         synchronized (locks) {
             // ensure there is a lock for the specified local+tx tuple
-            transactionLocalLock = locks.get(local);
+            transactionLocalLock = (TransactionLocalLock)locks.get(local);
             if (transactionLocalLock == null) {
                 transactionLocalLock = new TransactionLocalLock();
                 locks.put(local, transactionLocalLock);




More information about the jboss-svn-commits mailing list