Skip to content

Commit 2419ff6

Browse files
committed
Turn off BackOffPolicy by default in HttpRequest
1 parent bc6f5b9 commit 2419ff6

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,8 @@ static String executeAndGetValueOfSomeCustomHeader(HttpRequest request) {
147147
/** Whether to enable gzip compression of HTTP content ({@code false} by default). */
148148
private boolean enableGZipContent;
149149

150-
/**
151-
* The {@link BackOffPolicy} to use between retry attempts or {@code null} for none
152-
* ({@link ExponentialBackOffPolicy} by default).
153-
*/
154-
private BackOffPolicy backOffPolicy = new ExponentialBackOffPolicy();
150+
/** The {@link BackOffPolicy} to use between retry attempts or {@code null} for none. */
151+
private BackOffPolicy backOffPolicy;
155152

156153
/** Whether to automatically follow redirects ({@code true} by default). */
157154
private boolean followRedirects = true;
@@ -281,10 +278,6 @@ public BackOffPolicy getBackOffPolicy() {
281278
/**
282279
* Sets the {@link BackOffPolicy} to use between retry attempts or {@code null} for none.
283280
*
284-
* <p>
285-
* By default it is {@link ExponentialBackOffPolicy}.
286-
* </p>
287-
*
288281
* @since 1.7
289282
*/
290283
public HttpRequest setBackOffPolicy(BackOffPolicy backOffPolicy) {

0 commit comments

Comments
 (0)