Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomarquezp committed May 29, 2024
1 parent f9ece6f commit 02833c3
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
package com.google.api.gax.httpjson;

import static com.google.api.gax.util.TimeConversionUtils.toJavaTimeDuration;
import static com.google.api.gax.util.TimeConversionUtils.toJavaTimeInstant;
import static com.google.api.gax.util.TimeConversionUtils.toThreetenDuration;
import static com.google.api.gax.util.TimeConversionUtils.toThreetenInstant;

import com.google.api.core.BetaApi;
import com.google.api.core.InternalApi;
Expand All @@ -53,7 +51,6 @@
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import java.io.IOException;
import java.time.Instant;
import java.util.List;
import java.util.Map;
import java.util.Objects;
Expand Down Expand Up @@ -596,7 +593,7 @@ public HttpJsonCallContext withCallOptions(HttpJsonCallOptions newCallOptions) {
@Deprecated
public HttpJsonCallContext withDeadline(org.threeten.bp.Instant newDeadline) {
HttpJsonCallOptions.Builder builder =
callOptions != null ? callOptions.toBuilder() : HttpJsonCallOptions.newBuilder();
callOptions != null ? callOptions.toBuilder() : HttpJsonCallOptions.newBuilder();
return withCallOptions(builder.setDeadline(newDeadline).build());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
package com.google.api.gax.httpjson;

import static com.google.api.gax.util.TimeConversionTestUtils.testDurationMethod;
import static com.google.api.gax.util.TimeConversionTestUtils.testInstantMethod;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public org.threeten.bp.Duration getInitialRetryDelay() {
/** Backport of {@link #getMaxRetryDelayDuration()} */
@ObsoleteApi("Use getMaxRetryDelayDuration()")
public org.threeten.bp.Duration getMaxRetryDelay() {
return toThreetenDuration(getMaxRetryDelayDuration());
return toThreetenDuration(getMaxRetryDelayDuration());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public final class Watchdog implements Runnable, BackgroundResource {
*/
@ObsoleteApi("Use create(ApiClock, java.time.Duration, ScheduledExecutorService) instead")
public static Watchdog create(
ApiClock clock, org.threeten.bp.Duration scheduleInterval, ScheduledExecutorService executor) {
ApiClock clock,
org.threeten.bp.Duration scheduleInterval,
ScheduledExecutorService executor) {
return create(clock, toJavaTimeDuration(scheduleInterval), executor);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
package com.google.api.gax.rpc;

import com.google.api.core.ApiClock;
import com.google.api.core.InternalApi;
import com.google.api.core.ObsoleteApi;
import java.util.concurrent.ScheduledExecutorService;
import javax.annotation.Nonnull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
*/
package com.google.api.gax.tracing;

import static com.google.api.gax.util.TimeConversionUtils.toJavaTimeDuration;

import com.google.api.core.InternalApi;
import com.google.api.core.ObsoleteApi;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
*/
package com.google.api.gax.tracing;

import static com.google.api.gax.util.TimeConversionUtils.toJavaTimeDuration;

import com.google.api.core.InternalApi;
import com.google.api.core.ObsoleteApi;
Expand Down

0 comments on commit 02833c3

Please sign in to comment.