openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r683299 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java
Date Wed, 06 Aug 2008 15:34:33 GMT
Author: mikedd
Date: Wed Aug  6 08:34:33 2008
New Revision: 683299

URL: http://svn.apache.org/viewvc?rev=683299&view=rev
Log:
OPENJPA-676 remove extraneous cast

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java?rev=683299&r1=683298&r2=683299&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java
Wed Aug  6 08:34:33 2008
@@ -184,9 +184,8 @@
             // The seq is part of the business transaction however we need
             // to decrement the ref count so that the connection may be 
             // closed appropriately.
-            if(conn instanceof RefCountConnection) { 
             	try { 
-            		((RefCountConnection)conn).close();
+            		conn.close();
             	}
             	catch(SQLException se) { 
             		throw SQLExceptions.getStore(se);



Mime
View raw message