diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java b/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java index edeca4644e..6e15aa7f42 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java @@ -2226,7 +2226,7 @@ enum Result { // no of threads that finished their socket connection // attempts and notified socketFinder about their result - private volatile int noOfThreadsThatNotified = 0; + private int noOfThreadsThatNotified = 0; // If a valid connected socket is found, this value would be non-null, // else this would be null @@ -3071,7 +3071,7 @@ void setDataLoggable(boolean value) { private byte valueBytes[] = new byte[256]; // Monotonically increasing packet number associated with the current message - private volatile int packetNum = 0; + private int packetNum = 0; // Bytes for sending decimal/numeric data private final static int BYTES4 = 4;