Skip to content

Commit 00ff824

Browse files
committed
chore: format
1 parent d0547e3 commit 00ff824

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

oauth2_http/java/com/google/auth/oauth2/GdchCredentials.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ public class GdchCredentials extends GoogleCredentials {
7777
private static final String PARSE_ERROR_PREFIX = "Error parsing token refresh response. ";
7878

7979
/**
80-
* The expected format version for GDCH credential profiles.
81-
* Version "1" indicates the initial and currently supported JSON format for these credentials.
82-
* See go/gdch-python-auth-lib for more info.
80+
* The expected format version for GDCH credential profiles. Version "1" indicates the initial and
81+
* currently supported JSON format for these credentials. See go/gdch-python-auth-lib for more
82+
* info.
8383
*/
8484
@VisibleForTesting static final String SUPPORTED_JSON_FORMAT_VERSION = "1";
8585

@@ -580,8 +580,6 @@ public Builder setGdchAudience(String apiAudience) {
580580
return this;
581581
}
582582

583-
584-
585583
public String getProjectId() {
586584
return projectId;
587585
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ class DefaultCredentialsProviderTest {
8383
private static final String SA_PRIVATE_KEY_ID = "d84a4fefcf50791d4a90f2d7af17469d6282df9d";
8484
private static final String SA_PRIVATE_KEY_PKCS8 =
8585
ServiceAccountCredentialsTest.PRIVATE_KEY_PKCS8;
86-
private static final String GDCH_SA_FORMAT_VERSION = GdchCredentials.SUPPORTED_JSON_FORMAT_VERSION;
86+
private static final String GDCH_SA_FORMAT_VERSION =
87+
GdchCredentials.SUPPORTED_JSON_FORMAT_VERSION;
8788
private static final String GDCH_SA_PROJECT_ID = "gdch-service-account-project-id";
8889
private static final String GDCH_SA_PRIVATE_KEY_ID = "d84a4fefcf50791d4a90f2d7af17469d6282df9d";
8990
private static final String GDCH_SA_PRIVATE_KEY_PKC8 = GdchCredentialsTest.PRIVATE_KEY_PKCS8;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,8 +1201,6 @@ void builder_setGdchAudience_nullString() {
12011201
.contains("Audience cannot be null or empty for GDCH service account credentials."));
12021202
}
12031203

1204-
1205-
12061204
static GenericJson writeGdchServiceAccountJson(
12071205
String formatVersion,
12081206
String project,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ class GoogleCredentialsTest extends BaseSerializationTest {
7171
private static final String SA_PRIVATE_KEY_ID = "d84a4fefcf50791d4a90f2d7af17469d6282df9d";
7272
private static final String SA_PRIVATE_KEY_PKCS8 =
7373
ServiceAccountCredentialsTest.PRIVATE_KEY_PKCS8;
74-
private static final String GDCH_SA_FORMAT_VERSION = GdchCredentials.SUPPORTED_JSON_FORMAT_VERSION;
74+
private static final String GDCH_SA_FORMAT_VERSION =
75+
GdchCredentials.SUPPORTED_JSON_FORMAT_VERSION;
7576
private static final String GDCH_SA_PROJECT_ID = "gdch-service-account-project-id";
7677
private static final String GDCH_SA_PRIVATE_KEY_ID = "d84a4fefcf50791d4a90f2d7af17469d6282df9d";
7778
private static final String GDCH_SA_PRIVATE_KEY_PKC8 = GdchCredentialsTest.PRIVATE_KEY_PKCS8;

0 commit comments

Comments
 (0)