diff --git a/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Blob.java b/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Blob.java index d89f80f1def3..aea424ca4063 100644 --- a/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Blob.java +++ b/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Blob.java @@ -351,8 +351,10 @@ public Blob reload(BlobSourceOption... options) { *
* *Example usage of replacing blob's metadata: - *
{@code blob.toBuilder().metadata(null).build().update();} - * {@code blob.toBuilder().metadata(newMetadata).build().update();} + *{@code + * blob.toBuilder().metadata(null).build().update(); + * blob.toBuilder().metadata(newMetadata).build().update(); + * } ** * @param options update options diff --git a/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java b/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java index b43d35da6f5f..0ebe013202b0 100644 --- a/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java +++ b/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java @@ -1300,8 +1300,10 @@ private static void checkContentType(BlobInfo blobInfo) throws IllegalArgumentEx * can be done by setting the provided {@code blobInfo}'s metadata to {@code null}. * *Example usage of replacing blob's metadata: - *
{@code service.update(BlobInfo.builder("bucket", "name").metadata(null).build());} - * {@code service.update(BlobInfo.builder("bucket", "name").metadata(newMetadata).build());} + *{@code + * service.update(BlobInfo.builder("bucket", "name").metadata(null).build()); + * service.update(BlobInfo.builder("bucket", "name").metadata(newMetadata).build()); + * } ** * @return the updated blob @@ -1315,8 +1317,10 @@ private static void checkContentType(BlobInfo blobInfo) throws IllegalArgumentEx * can be done by setting the provided {@code blobInfo}'s metadata to {@code null}. * *Example usage of replacing blob's metadata: - *
{@code service.update(BlobInfo.builder("bucket", "name").metadata(null).build());} - * {@code service.update(BlobInfo.builder("bucket", "name").metadata(newMetadata).build());} + *{@code + * service.update(BlobInfo.builder("bucket", "name").metadata(null).build()); + * service.update(BlobInfo.builder("bucket", "name").metadata(newMetadata).build()); + * } ** * @return the updated blob