Skip to content

Commit f892325

Browse files
committed
---
yaml --- r: 1039 b: refs/heads/master c: 32e7521 h: refs/heads/master i: 1037: 5b92aeb 1035: f442819 1031: 0e35d3c 1023: 4c88862 v: v3
1 parent a65369e commit f892325

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
refs/heads/master: fb2580410520a66b51e26ff791fdc5b5685f1035
2+
refs/heads/master: 32e75217e0bd703c74c0a5b2d90dfc51b15acd02
33
refs/heads/travis: 0fa997e2fc9c6b61b2d91e6d163655aae67d44b6
44
refs/heads/gh-pages: 5a10432ecc75f29812e33a8236c900379509fe99

trunk/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ import java.nio.ByteBuffer;
112112
import java.nio.channels.WritableByteChannel;
113113

114114
Storage storage = StorageFactory.instance().get(StorageOptions.getDefaultInstance());
115-
Blob blob = new Blob(storage, "bucket", "blob_name");
115+
Blob blob = new Blob(storage,
116+
BlobInfo.builder("bucket", "blob_name").contentType("text/plain").build());
116117
if (!blob.exists()) {
117118
storage2.create(blob.info(), "Hello, Cloud Storage!".getBytes(UTF_8));
118119
} else {

trunk/gcloud-java-storage/src/main/java/com/google/gcloud/storage/package-info.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
* <pre>{@code
2222
* StorageOptions options = StorageOptions.builder().projectId("project").build();
2323
* Storage storage = StorageFactory.instance().get(options);
24-
* Blob blob = new Blob(storage, "bucket", "blob_name");
24+
* Blob blob = new Blob(storage,
25+
* BlobInfo.builder("bucket", "blob_name").contentType("text/plain").build());
2526
* if (!blob.exists()) {
2627
* storage.create(blob.info(), "Hello, Cloud Storage!".getBytes(UTF_8));
2728
* } else {

0 commit comments

Comments
 (0)