You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2019/09/05 00:57:39 UTC
[httpcomponents-client] branch 4.5.x updated: Remove extra parens.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 4.5.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/4.5.x by this push:
new 39b8668 Remove extra parens.
39b8668 is described below
commit 39b86685dc0cb2ddb5f1fa8a26bff90d9db26312
Author: Gary Gregory <gg...@rocketsoftware.com>
AuthorDate: Wed Sep 4 20:57:33 2019 -0400
Remove extra parens.
---
.../main/java/org/apache/http/impl/client/DefaultBackoffStrategy.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/httpclient/src/main/java/org/apache/http/impl/client/DefaultBackoffStrategy.java b/httpclient/src/main/java/org/apache/http/impl/client/DefaultBackoffStrategy.java
index 7a838af..ca402f0 100644
--- a/httpclient/src/main/java/org/apache/http/impl/client/DefaultBackoffStrategy.java
+++ b/httpclient/src/main/java/org/apache/http/impl/client/DefaultBackoffStrategy.java
@@ -44,8 +44,7 @@ public class DefaultBackoffStrategy implements ConnectionBackoffStrategy {
@Override
public boolean shouldBackoff(final Throwable t) {
- return (t instanceof SocketTimeoutException
- || t instanceof ConnectException);
+ return t instanceof SocketTimeoutException || t instanceof ConnectException;
}
@Override