db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1099785 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Transaction.java
Date Thu, 05 May 2011 13:32:16 GMT
Author: tfischer
Date: Thu May  5 13:32:15 2011
New Revision: 1099785

URL: http://svn.apache.org/viewvc?rev=1099785&view=rev
Log:
simplify code

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

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Transaction.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Transaction.java?rev=1099785&r1=1099784&r2=1099785&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Transaction.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Transaction.java
Thu May  5 13:32:15 2011
@@ -142,7 +142,7 @@ public final class Transaction
         try
         {
             if (con.getMetaData().supportsTransactions()
-                && con.getAutoCommit() == false)
+                && !con.getAutoCommit())
             {
                 con.commit();
                 con.setAutoCommit(true);
@@ -182,7 +182,7 @@ public final class Transaction
             try
             {
                 if (con.getMetaData().supportsTransactions()
-                    && con.getAutoCommit() == false)
+                    && !con.getAutoCommit())
                 {
                     con.rollback();
                     con.setAutoCommit(true);



---------------------------------------------------------------------
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