mirror of
https://github.com/apache/openjpa.git
synced 2025-03-07 00:49:39 +00:00
Use List<SQLException> generic.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@834281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
19eb9f2615
commit
8f2ed40ac9
@ -23,12 +23,10 @@ import java.util.LinkedList;
|
||||
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 @@ public class SQLExceptions {
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user