mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Variables protected by a monitor don't need to be volatile.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user