Skip to content

Commit

Permalink
fix readmes for storage
Browse files Browse the repository at this point in the history
  • Loading branch information
aozarov committed Nov 18, 2015
1 parent 4ecd840 commit d421117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ import com.google.gcloud.storage.StorageOptions;
import java.nio.ByteBuffer;
import java.nio.channels.WritableByteChannel;
StorageOptions options = StorageOptions.builder().projectId("project").build();
Storage storage = options.service();
Storage storage = StorageOptions.defaultInstance().service();
BlobId blobId = BlobId.of("bucket", "blob_name");
Blob blob = Blob.load(storage, blobId);
if (blob == null) {
Expand Down
2 changes: 1 addition & 1 deletion gcloud-java-storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import com.google.gcloud.storage.StorageOptions;
import java.nio.ByteBuffer;
import java.nio.channels.WritableByteChannel;

Storage storage = StorageOptions.getDefaultInstance().service();
Storage storage = StorageOptions.defaultInstance().service();
Blob blob = new Blob(storage, "bucket", "blob_name");
if (!blob.exists()) {
storage2.create(blob.info(), "Hello, Cloud Storage!".getBytes(UTF_8));
Expand Down

0 comments on commit d421117

Please sign in to comment.