replace synchronized vector by unsynchronized replacement.
@@ -14,6 +14,7 @@ import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Types;
import java.text.MessageFormat;
+import java.util.ArrayList;
import java.util.Properties;
import java.util.Vector;
import java.util.concurrent.atomic.AtomicInteger;
@@ -791,7 +792,7 @@ public final class SQLServerXAResource implements javax.transaction.xa.XAResourc
/* L0 */ public Xid[] recover(int flags) throws XAException {
XAReturnValue r = DTC_XA_Interface(XA_RECOVER, null, flags | tightlyCoupled);
int offset = 0;
- Vector<XidImpl> v = new Vector<XidImpl>();
+ ArrayList<XidImpl> v = new ArrayList<XidImpl>();
// If no XID's found, return zero length XID array (don't return null).
//
@@ -828,7 +829,7 @@ public final class SQLServerXAResource implements javax.transaction.xa.XAResourc
}
XidImpl xids[] = new XidImpl[v.size()];
for (int i = 0; i < v.size(); i++) {
- xids[i] = v.elementAt(i);
+ xids[i] = v.get(i);
if (xaLogger.isLoggable(Level.FINER))
xaLogger.finer(toString() + xids[i].toString());
}
