Skip to content

Commit cfb018a

Browse files
authored
remove synchronized (#2337)
1 parent ba88da8 commit cfb018a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ public int getPort() {
14401440
}
14411441

14421442
@Override
1443-
public synchronized int getReceiveBufferSize() throws SocketException {
1443+
public int getReceiveBufferSize() throws SocketException {
14441444
return tdsChannel.tcpSocket.getReceiveBufferSize();
14451445
}
14461446

@@ -1455,7 +1455,7 @@ public boolean getReuseAddress() throws SocketException {
14551455
}
14561456

14571457
@Override
1458-
public synchronized int getSendBufferSize() throws SocketException {
1458+
public int getSendBufferSize() throws SocketException {
14591459
return tdsChannel.tcpSocket.getSendBufferSize();
14601460
}
14611461

@@ -1465,7 +1465,7 @@ public int getSoLinger() throws SocketException {
14651465
}
14661466

14671467
@Override
1468-
public synchronized int getSoTimeout() throws SocketException {
1468+
public int getSoTimeout() throws SocketException {
14691469
return tdsChannel.tcpSocket.getSoTimeout();
14701470
}
14711471

@@ -1536,19 +1536,19 @@ public void connect(SocketAddress endpoint, int timeout) throws IOException {
15361536
// Ignore calls to methods that would otherwise allow the SSL socket
15371537
// to directly manipulate the underlying TCP socket
15381538
@Override
1539-
public synchronized void close() throws IOException {
1539+
public void close() throws IOException {
15401540
if (logger.isLoggable(Level.FINER))
15411541
logger.finer(logContext + " Ignoring close");
15421542
}
15431543

15441544
@Override
1545-
public synchronized void setReceiveBufferSize(int size) throws SocketException {
1545+
public void setReceiveBufferSize(int size) throws SocketException {
15461546
if (logger.isLoggable(Level.FINER))
15471547
logger.finer(toString() + " Ignoring setReceiveBufferSize size:" + size);
15481548
}
15491549

15501550
@Override
1551-
public synchronized void setSendBufferSize(int size) throws SocketException {
1551+
public void setSendBufferSize(int size) throws SocketException {
15521552
if (logger.isLoggable(Level.FINER))
15531553
logger.finer(toString() + " Ignoring setSendBufferSize size:" + size);
15541554
}
@@ -1566,7 +1566,7 @@ public void setSoLinger(boolean on, int linger) throws SocketException {
15661566
}
15671567

15681568
@Override
1569-
public synchronized void setSoTimeout(int timeout) throws SocketException {
1569+
public void setSoTimeout(int timeout) throws SocketException {
15701570
tdsChannel.tcpSocket.setSoTimeout(timeout);
15711571
}
15721572

0 commit comments

Comments
 (0)