Skip to content

Commit b897b68

Browse files
committed
minor fixes
1 parent 7189bf1 commit b897b68

File tree

4 files changed

+10
-42
lines changed

4 files changed

+10
-42
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public List<String> getLocations() {
105105
@Override
106106
public String toString() {
107107
return MoreObjects.toStringHelper(this)
108-
.add("encoded_locations", encodedLocations)
108+
.add("encodedLocations", encodedLocations)
109109
.add("locations", locations)
110110
.toString();
111111
}

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@
3131

3232
package com.google.auth.oauth2;
3333

34-
import static org.junit.Assert.*;
34+
import static org.junit.Assert.assertEquals;
35+
import static org.junit.Assert.assertFalse;
36+
import static org.junit.Assert.assertNotNull;
37+
import static org.junit.Assert.assertNull;
38+
import static org.junit.Assert.assertSame;
39+
import static org.junit.Assert.assertTrue;
40+
import static org.junit.Assert.fail;
3541

3642
import com.google.api.client.http.HttpStatusCodes;
3743
import com.google.api.client.json.GenericJson;
@@ -1208,7 +1214,7 @@ public void trustBoundary_refreshShouldThrowInCaseOfMalformedResponse() throws I
12081214

12091215
MockTokenServerTransport transport = new MockTokenServerTransport();
12101216
transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN);
1211-
// The transport will return a response with no encoded_locations field.
1217+
// The transport will return a response with no encodedLocations field.
12121218
transport.setTrustBoundary(new TrustBoundary(null, Collections.emptyList()));
12131219

12141220
ServiceAccountCredentials credentials =

samples/snippets/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<dependency>
4444
<groupId>com.google.auth</groupId>
4545
<artifactId>google-auth-library-oauth2-http</artifactId>
46-
<version>1.35.0</version>
46+
<version>1.35.0</version>
4747
</dependency>
4848

4949
<!-- IAM dependency-->

samples/snippets/src/main/java/ServiceAccountCopy.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)