File tree 2 files changed +1
-4
lines changed
java/com/google/auth/oauth2
javatests/com/google/auth/oauth2
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ private String getJwtAccess(URI uri) throws IOException {
330
330
"generateJwtAccess threw an unexpected checked exception" , e .getCause ());
331
331
332
332
} catch (UncheckedExecutionException e ) {
333
- Throwables .propagateIfPossible (e );
333
+ Throwables .throwIfUnchecked (e );
334
334
// Should never happen
335
335
throw new IllegalStateException (
336
336
"generateJwtAccess threw an unchecked exception that couldn't be rethrown" , e );
Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ public class MockIAMCredentialsServiceTransport extends MockHttpTransport {
48
48
49
49
private static final String IAM_ACCESS_TOKEN_ENDPOINT =
50
50
"https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/%s:generateAccessToken" ;
51
- private static final String IAM_ID_TOKEN_ENDPOINT =
52
- "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/%s:generateIdToken" ;
53
51
private static final String IAM_SIGN_ENDPOINT =
54
52
"https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/%s:signBlob" ;
55
53
private Integer tokenResponseErrorCode ;
@@ -147,7 +145,6 @@ public LowLevelHttpResponse execute() throws IOException {
147
145
GenericJson refreshContents = new GenericJson ();
148
146
refreshContents .setFactory (OAuth2Utils .JSON_FACTORY );
149
147
refreshContents .put ("signedBlob" , base64 .encode (signedBlob ));
150
- String refreshText = refreshContents .toPrettyString ();
151
148
return new MockLowLevelHttpResponse ()
152
149
.setStatusCode (responseCode )
153
150
.setContent (TestUtils .errorJson (errorMessage ));
You can’t perform that action at this time.
0 commit comments