Skip to content

Commit f25f32d

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 6581 b: refs/heads/tswast-patch-1 c: 942ceb4 h: refs/heads/master i: 6579: 34d509c
1 parent 5848081 commit f25f32d

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 18cbb774258a77172a988d7a84c5e559d57b0c95
60+
refs/heads/tswast-patch-1: 942ceb40e3281593afb8da78ced1a9e476284c9c
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-core/src/main/java/com/google/gcloud/AuthCredentials.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public boolean equals(Object obj) {
177177
}
178178

179179
@Override
180-
public GoogleCredentials credentials() {
180+
public ServiceAccountCredentials credentials() {
181181
return new ServiceAccountCredentials(null, account, privateKey, null, null);
182182
}
183183

branches/tswast-patch-1/gcloud-java-storage/src/main/java/com/google/gcloud/storage/StorageImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,7 @@ public URL signUrl(BlobInfo blobInfo, long duration, TimeUnit unit, SignUrlOptio
562562
}
563563
ServiceAccountAuthCredentials authCred =
564564
(ServiceAccountAuthCredentials) optionMap.get(SignUrlOption.Option.SERVICE_ACCOUNT_CRED);
565-
ServiceAccountCredentials cred =
566-
(ServiceAccountCredentials) (authCred != null ? authCred.credentials() : null);
565+
ServiceAccountCredentials cred = authCred != null ? authCred.credentials() : null;
567566
if (authCred == null) {
568567
checkArgument(
569568
this.options().authCredentials() != null

0 commit comments

Comments
 (0)