Skip to content

Commit 3fb3f07

Browse files
committed
JAVA-381: Removed over-synchronized methods. Thanks to Franklin Nwankwo for pointing it out.
1 parent ade11ca commit 3fb3f07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/com/mongodb/DynamicConnectionStatus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void run() {
135135
}
136136
}
137137

138-
private synchronized void notifyOfOkNode(DynamicNode node) {
138+
private void notifyOfOkNode(DynamicNode node) {
139139
synchronized (this) {
140140
if (connectionStatus != null) {
141141
return;
@@ -178,7 +178,7 @@ public CommandResult update() {
178178
private boolean isMongos;
179179
}
180180

181-
private synchronized ConnectionStatus getConnectionStatus() {
181+
private ConnectionStatus getConnectionStatus() {
182182
if (connectionStatus == null) {
183183
try {
184184
synchronized (this) {

0 commit comments

Comments
 (0)