openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r834281 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLExceptions.java
Date Mon, 09 Nov 2009 23:50:09 GMT
Author: allee8285
Date: Mon Nov  9 23:50:09 2009
New Revision: 834281

URL: http://svn.apache.org/viewvc?rev=834281&view=rev
Log:
Use List<SQLException> generic.

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLExceptions.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLExceptions.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLExceptions.java?rev=834281&r1=834280&r2=834281&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLExceptions.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLExceptions.java
Mon Nov  9 23:50:09 2009
@@ -23,12 +23,10 @@
 import java.util.List;
 
 import org.apache.openjpa.conf.OpenJPAConfiguration;
-import org.apache.openjpa.kernel.LockLevels;
 import org.apache.openjpa.kernel.OpenJPAStateManager;
 import org.apache.openjpa.lib.util.Localizer.Message;
 import org.apache.openjpa.util.LockException;
 import org.apache.openjpa.util.OpenJPAException;
-import org.apache.openjpa.util.QueryException;
 import org.apache.openjpa.util.StoreException;
 
 /**
@@ -110,7 +108,7 @@
         if (se == null)
             return EMPTY_EXCEPS;
 
-        List errs = new LinkedList();
+        List<SQLException> errs = new LinkedList<SQLException>();
         while (se != null && !errs.contains(se)) {
             errs.add(se);
             se = se.getNextException();



Mime
View raw message