Variables protected by a monitor don't need to be volatile.

This commit is contained in:
akwizgran
2011-10-19 12:52:02 +01:00
parent 8713e81887
commit f18ddfe55f

View File

@@ -234,8 +234,8 @@ abstract class JdbcDatabase implements Database<Connection> {
private final LinkedList<Connection> connections =
new LinkedList<Connection>(); // Locking: self
private volatile int openConnections = 0; // Locking: connections
private volatile boolean closed = false; // Locking: connections
private int openConnections = 0; // Locking: connections
private boolean closed = false; // Locking: connections
protected abstract Connection createConnection() throws SQLException;