Skip to content

Commit c86b547

Browse files
Forcibly cast in interop test
1 parent 14e7741 commit c86b547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interop-testing/src/main/java/io/grpc/testing/integration/AbstractTransportTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ public void serviceAccountCreds(String jsonKey, InputStream credentialsStream, S
711711
throws Exception {
712712
// cast to ServiceAccountCredentials to double-check the right type of object was created.
713713
GoogleCredentials credentials =
714-
(ServiceAccountCredentials) GoogleCredentials.fromStream(credentialsStream);
714+
ServiceAccountCredentials.class.cast(GoogleCredentials.fromStream(credentialsStream));
715715
credentials = credentials.createScoped(Arrays.<String>asList(authScope));
716716
TestServiceGrpc.TestServiceBlockingStub stub = blockingStub
717717
.withInterceptors(new ClientAuthInterceptor(credentials, testServiceExecutor));

0 commit comments

Comments
 (0)