Skip to content

Commit ab3f219

Browse files
yihanzhenpongad
authored andcommitted
---
yaml --- r: 9009 b: refs/heads/lesv-patch-1 c: fad8807 h: refs/heads/master i: 9007: c73f3d8
1 parent 4d29a5a commit ab3f219

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ refs/tags/v0.22.0: 18b298fe4bfe8ec2f20b0e0bf7ffdcce5cc3c5fe
6666
refs/heads/vam-google-patch-1: d0c8fee3a4074d0bf7360ce8c4f7f7223d0ee7b9
6767
refs/heads/vam-google-patch-CODEOWNERS: 2ac1616e25229e51d08a984708ef1918f91a35ee
6868
refs/heads/danoscarmike-patch-1: 7342a9916bce4ed00002c7202e2a16c5d46afaea
69-
refs/heads/lesv-patch-1: 6fdc89372b7cec8e473641c9317deff4a1d7e59e
69+
refs/heads/lesv-patch-1: fad880708f1bddfb42736796af7ea25540665394
7070
refs/heads/ml-update-branch: 079dd6610017f5c51b9d1938c12d6d55b61513cf
7171
refs/heads/vkedia-patch-2: 7d8241388a9769a5c069334761b06c7012c878e7
7272
refs/heads/vkedia-patch-3: 4d128043acaa7db9160faf439d2ca6104e8a88cb

branches/lesv-patch-1/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/StorageExample.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,11 @@ private static class DownloadAction extends StorageAction<Tuple<BlobId, Path>> {
352352

353353
@Override
354354
public void run(Storage storage, Tuple<BlobId, Path> tuple) throws IOException {
355-
run(storage, tuple.x(), tuple.y());
355+
run(storage, tuple.x().getBucket(), tuple.x().getName(), tuple.y());
356356
}
357357

358-
private void run(Storage storage, BlobId blobId, Path downloadTo) throws IOException {
358+
private void run(Storage storage, String bucketName, String objectName, Path downloadTo) throws IOException {
359+
BlobId blobId = BlobId.of(bucketName, objectName);
359360
Blob blob = storage.get(blobId);
360361
if (blob == null) {
361362
System.out.println("No such object");

0 commit comments

Comments
 (0)