Skip to content

Commit b94b265

Browse files
joshbruninglukeis
authored andcommitted
Use directExecutor().
Guava 18 deprecated sameThreadExecutor() and split the use case into two options: newDirectExecutorService() and directExecutor(). Use directExecutor() as we don't need ExecutorService#shutdown semantics and this has a positive performance impact. Signed-off-by: Luke Inman-Semerau <[email protected]>
1 parent 5556f0a commit b94b265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/safari/WebSocketConnection.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public ListenableFuture<String> send(String data) {
136136
public void run() {
137137
pendingResponse.compareAndSet(response, null);
138138
}
139-
}, MoreExecutors.sameThreadExecutor());
139+
}, MoreExecutors.directExecutor());
140140

141141
if (pendingResponse.compareAndSet(null, response)) {
142142
TextWebSocketFrame frame = new TextWebSocketFrame(data);

0 commit comments

Comments
 (0)