Skip to content

Commit 53328f7

Browse files
committed
Document contentType default value in Bucket.create
1 parent cd1c8cf commit 53328f7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • gcloud-java-storage/src/main/java/com/google/gcloud/storage

gcloud-java-storage/src/main/java/com/google/gcloud/storage/Bucket.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ public List<Blob> get(String blobName1, String blobName2, String... blobNames) {
182182
*
183183
* @param blob a blob name
184184
* @param content the blob content
185-
* @param contentType the blob content type
185+
* @param contentType the blob content type. If {@code null} then
186+
* {@value com.google.gcloud.storage.Storage#DEFAULT_CONTENT_TYPE} is used.
186187
* @param options options for blob creation
187188
* @return a complete blob information.
188189
* @throws StorageException upon failure
@@ -200,7 +201,8 @@ public Blob create(String blob, byte[] content, String contentType, BlobTargetOp
200201
*
201202
* @param blob a blob name
202203
* @param content the blob content as a stream
203-
* @param contentType the blob content type
204+
* @param contentType the blob content type. If {@code null} then
205+
* {@value com.google.gcloud.storage.Storage#DEFAULT_CONTENT_TYPE} is used.
204206
* @param options options for blob creation
205207
* @return a complete blob information.
206208
* @throws StorageException upon failure

0 commit comments

Comments
 (0)