Skip to content

Commit 9c35123

Browse files
committed
Remove unnecessary locking in DefaultNettyOptions
This value is initialized at constructor time and marked final, so it can never change. There is no need to have access to this reference synchronized.
1 parent 7982f41 commit 9c35123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/datastax/oss/driver/internal/core/context/DefaultNettyOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public Future<Void> onClose() {
200200
}
201201

202202
@Override
203-
public synchronized Timer getTimer() {
203+
public Timer getTimer() {
204204
return timer;
205205
}
206206
}

0 commit comments

Comments
 (0)