Skip to content

Commit e68317d

Browse files
yihanzhenpongad
authored andcommitted
---
yaml --- r: 8723 b: refs/heads/master c: fad8807 h: refs/heads/master i: 8721: 2e502db 8719: 14f300a
1 parent 59749ec commit e68317d

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6fdc89372b7cec8e473641c9317deff4a1d7e59e
2+
refs/heads/master: fad880708f1bddfb42736796af7ea25540665394
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 6daca92127d91b7c2c99490080ecf8a13fa94cde
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/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)