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:
Albert Lee 2009-11-09 23:50:09 +00:00
parent 19eb9f2615
commit 8f2ed40ac9

View File

@ -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();