Skip to content

Commit

Permalink
Merge pull request square#3060 from vanniktech/remove_synth_methods
Browse files Browse the repository at this point in the history
Remove creation of synthetic accessor method.
  • Loading branch information
swankjesse authored Dec 25, 2016
2 parents eecf0e5 + 0e151a4 commit cddb441
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 cddb441

Please sign in to comment.