Skip to content

Commit 6529ca3

Browse files
committed
lint
1 parent 0a3fe74 commit 6529ca3

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminClientV2.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package com.google.cloud.bigtable.admin.v2;
1717

18-
import com.google.api.core.ApiAsyncFunction;
1918
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
@@ -160,15 +159,18 @@ private static AwaitConsistencyCallableV2 createAwaitConsistencyCallable(
160159
throws IOException {
161160

162161
// Reusing getRestoreTableMethod() as a placeholder descriptor for LRO optimization tracking.
163-
// Since there is no dedicated gRPC LRO method descriptor generated for OptimizeRestoredTable LRO,
162+
// Since there is no dedicated gRPC LRO method descriptor generated for OptimizeRestoredTable
163+
// LRO,
164164
// we reuse getRestoreTableMethod() (which is an LRO and returns a google.longrunning.Operation)
165-
// and attach a throwing Marshaller for Void to satisfy the OperationCallable constructor requirements.
166-
// Note: We do not plumb the gRPC ManagedChannel into the ClientContext below because this callable
167-
// is only used for resumeFutureCall() (polling existing LROs via OperationsStub), which already encapsulates
165+
// and attach a throwing Marshaller for Void to satisfy the OperationCallable constructor
166+
// requirements.
167+
// Note: We do not plumb the gRPC ManagedChannel into the ClientContext below because this
168+
// callable
169+
// is only used for resumeFutureCall() (polling existing LROs via OperationsStub), which already
170+
// encapsulates
168171
// its own channel. The initial RPC is never called through this OperationCallable.
169172
MethodDescriptor<Void, Operation> fakeDescriptor =
170-
BigtableTableAdminGrpc.getRestoreTableMethod()
171-
.toBuilder(
173+
BigtableTableAdminGrpc.getRestoreTableMethod().toBuilder(
172174
new Marshaller<Void>() {
173175
@Override
174176
public InputStream stream(Void value) {
@@ -297,8 +299,7 @@ public ApiFuture<Void> awaitOptimizeRestoredTableAsync(
297299
OptimizeRestoredTableOperationToken token) {
298300
ApiFuture<Empty> emptyFuture =
299301
getOptimizeRestoredTableCallable().resumeFutureCall(token.getOperationName());
300-
return ApiFutures.transform(
301-
emptyFuture, input -> null, MoreExecutors.directExecutor());
302+
return ApiFutures.transform(emptyFuture, input -> null, MoreExecutors.directExecutor());
302303
}
303304

304305
/**

0 commit comments

Comments
 (0)