Skip to content

Commit ddd6f03

Browse files
jasonk000tolbertam
authored andcommitted
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. Patch by Jason Koch; reviewed by Alexandre Dutra, Andy Tolbert and Jane He
1 parent 17ebe60 commit ddd6f03

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)