@@ -188,19 +188,19 @@ public URL getRequestUrl() {
188188 final Builder uriBuilder = parsedUrl .newBuilder ();
189189
190190 for (final QueryOption option : queryOptions ) {
191- uriBuilder .addQueryParameter (option .getName (), option .getValue ().toString ());
191+ uriBuilder .addQueryParameter (option .getName (), option .getValue ().toString ());
192192 }
193193
194194 try {
195195 return new URL (uriBuilder .build ().toString ());
196196 } catch (final MalformedURLException e ) {
197- if (this instanceof CustomRequest ) {
198- this .getClient ().getLogger ().logError ("Invalid custom URL: " + uriBuilder , e );
199- } else {
200- throw new ClientException ("Invalid URL: " + uriBuilder , e );
201- }
197+ if (this instanceof CustomRequest ) {
198+ this .getClient ().getLogger ().logError ("Invalid custom URL: " + uriBuilder , e );
199+ } else {
200+ throw new ClientException ("Invalid URL: " + uriBuilder , e );
201+ }
202202 }
203- return null ;
203+ return null ;
204204 }
205205
206206 /**
@@ -455,7 +455,7 @@ protected void addSkipOption(final int value) {
455455 * @param skipToken - Token for pagination
456456 */
457457 protected void addSkipTokenOption (@ Nonnull final String skipToken ) {
458- Objects .requireNonNull (skipToken , "parameter skipToken cannot be null" );
458+ Objects .requireNonNull (skipToken , "parameter skipToken cannot be null" );
459459 addQueryOption (new QueryOption ("$skiptoken" , skipToken ));
460460 }
461461
@@ -511,13 +511,13 @@ public Class<? extends T> getResponseType() {
511511 return responseClass ;
512512 }
513513
514- /**
514+ /**
515515 * Sets the max redirects
516516 *
517517 * @param maxRedirects Max redirects that a request can take
518518 */
519519 public void setMaxRedirects (int maxRedirects ) {
520- this .maxRedirects = maxRedirects ;
520+ this .maxRedirects = maxRedirects ;
521521 }
522522
523523 /**
@@ -526,7 +526,7 @@ public void setMaxRedirects(int maxRedirects) {
526526 * @return Max redirects that a request can take
527527 */
528528 public int getMaxRedirects () {
529- return maxRedirects ;
529+ return maxRedirects ;
530530 }
531531
532532 /**
@@ -535,7 +535,7 @@ public int getMaxRedirects() {
535535 * @param shouldRedirect Callback called before doing a redirect
536536 */
537537 public void setShouldRedirect (@ Nonnull IShouldRedirect shouldRedirect ) {
538- Objects .requireNonNull (shouldRedirect , "parameter shouldRedirect cannot be null" );
538+ Objects .requireNonNull (shouldRedirect , "parameter shouldRedirect cannot be null" );
539539 this .shouldRedirect = shouldRedirect ;
540540 }
541541
@@ -546,7 +546,7 @@ public void setShouldRedirect(@Nonnull IShouldRedirect shouldRedirect) {
546546 */
547547 @ Nonnull
548548 public IShouldRedirect getShouldRedirect () {
549- return shouldRedirect ;
549+ return shouldRedirect ;
550550 }
551551
552552 /**
@@ -555,7 +555,7 @@ public IShouldRedirect getShouldRedirect() {
555555 * @param shouldretry The callback called before retry
556556 */
557557 public void setShouldRetry (@ Nonnull IShouldRetry shouldretry ) {
558- Objects .requireNonNull (shouldretry , "parameter shouldretry cannot be null" );
558+ Objects .requireNonNull (shouldretry , "parameter shouldretry cannot be null" );
559559 this .shouldRetry = shouldretry ;
560560 }
561561
@@ -566,7 +566,7 @@ public void setShouldRetry(@Nonnull IShouldRetry shouldretry) {
566566 */
567567 @ Nonnull
568568 public IShouldRetry getShouldRetry () {
569- return shouldRetry ;
569+ return shouldRetry ;
570570 }
571571
572572 /**
@@ -575,7 +575,7 @@ public IShouldRetry getShouldRetry() {
575575 * @param maxRetries Max retries for a request
576576 */
577577 public void setMaxRetries (int maxRetries ) {
578- this .maxRetries = maxRetries ;
578+ this .maxRetries = maxRetries ;
579579 }
580580
581581 /**
@@ -584,7 +584,7 @@ public void setMaxRetries(int maxRetries) {
584584 * @return Max retries for a request
585585 */
586586 public int getMaxRetries () {
587- return maxRetries ;
587+ return maxRetries ;
588588 }
589589
590590 /**
@@ -593,7 +593,7 @@ public int getMaxRetries() {
593593 * @param delay Delay in seconds between retries
594594 */
595595 public void setDelay (long delay ) {
596- this .delay = delay ;
596+ this .delay = delay ;
597597 }
598598
599599 /**
@@ -602,6 +602,6 @@ public void setDelay(long delay) {
602602 * @return Delay between retries in seconds
603603 */
604604 public long getDelay () {
605- return delay ;
605+ return delay ;
606606 }
607607}
0 commit comments