Skip to content

Commit 8e991fe

Browse files
authored
chore: Remmove class cass for getProjectId in GDCHCredentials (#1816)
1 parent c3d9ee0 commit 8e991fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public void getDefaultCredentials_GdchServiceAccount() throws IOException {
410410

411411
assertNotNull(defaultCredentials);
412412
assertTrue(defaultCredentials instanceof GdchCredentials);
413-
assertEquals(GDCH_SA_PROJECT_ID, ((GdchCredentials) defaultCredentials).getProjectId());
413+
assertEquals(GDCH_SA_PROJECT_ID, defaultCredentials.getProjectId());
414414
assertEquals(
415415
GDCH_SA_SERVICE_IDENTITY_NAME,
416416
((GdchCredentials) defaultCredentials).getServiceIdentityName());
@@ -423,7 +423,7 @@ public void getDefaultCredentials_GdchServiceAccount() throws IOException {
423423
((GdchCredentials) defaultCredentials).createWithGdchAudience(GDCH_SA_API_AUDIENCE);
424424
assertNotNull(defaultCredentials);
425425
assertTrue(defaultCredentials instanceof GdchCredentials);
426-
assertEquals(GDCH_SA_PROJECT_ID, ((GdchCredentials) defaultCredentials).getProjectId());
426+
assertEquals(GDCH_SA_PROJECT_ID, defaultCredentials.getProjectId());
427427
assertEquals(
428428
GDCH_SA_SERVICE_IDENTITY_NAME,
429429
((GdchCredentials) defaultCredentials).getServiceIdentityName());

0 commit comments

Comments
 (0)