Skip to content

Commit

Permalink
Improvement | Fix synchronization on a non-final field (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 authored and cheenamalhotra committed Dec 14, 2018
1 parent 02467eb commit 9a1c8ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3271,7 +3271,7 @@ public int getTransactionIsolation() throws SQLServerException {
}

volatile SQLWarning sqlWarnings; // the SQL warnings chain
Object warningSynchronization = new Object();
private final Object warningSynchronization = new Object();

// Think about returning a copy when we implement additional warnings.
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void run() {
*
*/
final class SQLServerSymmetricKeyCache {
static Object lock = new Object();
static final Object lock = new Object();
private final ConcurrentHashMap<String, SQLServerSymmetricKey> cache;
private static final SQLServerSymmetricKeyCache instance = new SQLServerSymmetricKeyCache();
private static ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1, new ThreadFactory() {
Expand Down

0 comments on commit 9a1c8ce

Please sign in to comment.