Skip to content

Commit 35978a8

Browse files
committed
chore: Resolve lint issues
1 parent 413f087 commit 35978a8

1 file changed

Lines changed: 29 additions & 20 deletions

File tree

‎java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryRetryHelper.java‎

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import com.google.api.gax.retrying.RetryAlgorithm;
2424
import com.google.api.gax.retrying.RetrySettings;
2525
import com.google.api.gax.retrying.RetryingContext;
26-
import com.google.api.gax.retrying.RetryingExecutor;
2726
import com.google.api.gax.retrying.RetryingFuture;
2827
import com.google.api.gax.retrying.TimedAttemptSettings;
2928
import com.google.api.gax.retrying.TimedRetryAlgorithm;
@@ -63,7 +62,15 @@ public static <V> V runWithRetries(
6362
BigQueryRetryConfig bigQueryRetryConfig,
6463
boolean isOpenTelemetryEnabled,
6564
Tracer openTelemetryTracer) {
66-
return runWithRetries(callable, retrySettings, resultRetryAlgorithm, clock, bigQueryRetryConfig, isOpenTelemetryEnabled, openTelemetryTracer, null);
65+
return runWithRetries(
66+
callable,
67+
retrySettings,
68+
resultRetryAlgorithm,
69+
clock,
70+
bigQueryRetryConfig,
71+
isOpenTelemetryEnabled,
72+
openTelemetryTracer,
73+
null);
6774
}
6875

6976
public static <V> V runWithRetries(
@@ -141,28 +148,30 @@ private static <V> V run(
141148
}
142149

143150
// 2. Obtain ApiTracer from the factory
144-
final ApiTracer tracer = (apiTracerFactory != null)
145-
? apiTracerFactory.newTracer(
146-
null, SpanName.of("BigQuery", methodName), ApiTracerFactory.OperationType.Unary)
147-
: BaseApiTracer.getInstance();
151+
final ApiTracer tracer =
152+
(apiTracerFactory != null)
153+
? apiTracerFactory.newTracer(
154+
null, SpanName.of("BigQuery", methodName), ApiTracerFactory.OperationType.Unary)
155+
: BaseApiTracer.getInstance();
148156

149157
// 3. Construct RetryingContext
150-
RetryingContext context = new RetryingContext() {
151-
@Override
152-
public ApiTracer getTracer() {
153-
return tracer;
154-
}
158+
RetryingContext context =
159+
new RetryingContext() {
160+
@Override
161+
public ApiTracer getTracer() {
162+
return tracer;
163+
}
155164

156-
@Override
157-
public RetrySettings getRetrySettings() {
158-
return retrySettings;
159-
}
165+
@Override
166+
public RetrySettings getRetrySettings() {
167+
return retrySettings;
168+
}
160169

161-
@Override
162-
public Set<StatusCode.Code> getRetryableCodes() {
163-
return Collections.emptySet();
164-
}
165-
};
170+
@Override
171+
public Set<StatusCode.Code> getRetryableCodes() {
172+
return Collections.emptySet();
173+
}
174+
};
166175

167176
// Log retry info
168177
if (LOG.isLoggable(Level.FINEST)) {

0 commit comments

Comments
 (0)