Skip to content

Commit

Permalink
Remove creation of synthetic accessor method.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech committed Dec 25, 2016
1 parent eecf0e5 commit 0e151a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion okhttp/src/main/java/okhttp3/internal/ws/RealWebSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,15 @@ boolean writeOneFrame() throws IOException {
}

private final class PingRunnable implements Runnable {
PingRunnable() {
}

@Override public void run() {
writePingFrame();
}
}

private void writePingFrame() {
void writePingFrame() {
WebSocketWriter writer;
synchronized (this) {
if (failed) return;
Expand Down

0 comments on commit 0e151a4

Please sign in to comment.