Skip to content

Commit

Permalink
Vector -> ArrayList
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjefferson committed Apr 6, 2017
1 parent 525271f commit da36344
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -20,7 +20,8 @@
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Vector;
import java.util.ArrayList;
import java.util.List;

import javax.sql.ConnectionEvent;
import javax.sql.ConnectionEventListener;
Expand Down Expand Up @@ -66,13 +67,12 @@ class PooledConnectionImpl implements PooledConnection,
/**
* ConnectionEventListeners
*/
private final Vector<ConnectionEventListener> eventListeners;
private final List<ConnectionEventListener> eventListeners;

/**
* StatementEventListeners
*/
private final Vector<StatementEventListener> statementEventListeners =
new Vector<>();
private final List<StatementEventListener> statementEventListeners = new ArrayList<>();

/**
* flag set to true, once close() is called.
Expand All @@ -98,7 +98,7 @@ class PooledConnectionImpl implements PooledConnection,
} else {
this.delegatingConnection = new DelegatingConnection<>(connection);
}
eventListeners = new Vector<>();
eventListeners = new ArrayList<>();
isClosed = false;
}

Expand Down

0 comments on commit da36344

Please sign in to comment.