Skip to content

Commit

Permalink
Merge pull request square#5555 from square/remove-unnecessary-parenth…
Browse files Browse the repository at this point in the history
…eses-20191014

Remove unnecessary use of grouping parentheses
  • Loading branch information
JakeWharton authored Oct 14, 2019
2 parents 8ec8ae5 + 0137eb9 commit 99fce15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions okhttp/src/test/java/okhttp3/CallTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,7 @@ public void interceptorCallsProceedWithoutClosingPriorResponse() throws Exceptio
}

@Override public void writeTo(BufferedSink sink) throws IOException {
sink.writeUtf8("attempt " + (attempt++));
sink.writeUtf8("attempt " + attempt++);
}
})
.build();
Expand Down Expand Up @@ -2053,7 +2053,7 @@ public void interceptorCallsProceedWithoutClosingPriorResponse() throws Exceptio
}

@Override public void writeTo(BufferedSink sink) throws IOException {
sink.writeUtf8("attempt " + (attempt++));
sink.writeUtf8("attempt " + attempt++);
}

@Override public boolean isOneShot() {
Expand Down
2 changes: 1 addition & 1 deletion okhttp/src/test/java/okhttp3/OkHttpClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public final class OkHttpClientTest {
new OkHttpClient.Builder().protocols(protocols);
fail();
} catch (IllegalArgumentException expected) {
assertThat(expected.getMessage()).isEqualTo(("protocols must not contain null"));
assertThat(expected.getMessage()).isEqualTo("protocols must not contain null");
}
}

Expand Down

0 comments on commit 99fce15

Please sign in to comment.