Skip to content

Commit 5dd0292

Browse files
committed
Rephrase RewriteChannel and Storage.copy javadoc. Add final to CopyWriter's StateImpl.target
1 parent 1855ae1 commit 5dd0292

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333

3434
/**
3535
* Google Storage blob copy writer. A {@code CopyWriter} object allows to copy both blob's data and
36-
* information. To override source blob's information call {@link Storage#copy(Storage.CopyRequest)}
37-
* with a {@code CopyRequest} object where the copy target is set via
36+
* information. To override source blob's information supply a {@code BlobInfo} to the
37+
* {@code CopyRequest} using either
3838
* {@link Storage.CopyRequest.Builder#target(BlobInfo, Storage.BlobTargetOption...)} or
3939
* {@link Storage.CopyRequest.Builder#target(BlobInfo, Iterable)}.
4040
*
@@ -176,7 +176,7 @@ static class Builder {
176176
private final BlobId source;
177177
private final Map<StorageRpc.Option, ?> sourceOptions;
178178
private final boolean overrideInfo;
179-
private BlobInfo target;
179+
private final BlobInfo target;
180180
private final Map<StorageRpc.Option, ?> targetOptions;
181181
private BlobInfo result;
182182
private long blobSize;

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,9 +1386,10 @@ public static Builder builder() {
13861386

13871387
/**
13881388
* Sends a copy request. This method copies both blob's data and information. To override source
1389-
* blob's information set the copy target via
1390-
* {@link CopyRequest.Builder#target(BlobInfo, BlobTargetOption...)} or
1391-
* {@link CopyRequest.Builder#target(BlobInfo, Iterable)}.
1389+
* blob's information supply a {@code BlobInfo} to the
1390+
* {@code CopyRequest} using either
1391+
* {@link Storage.CopyRequest.Builder#target(BlobInfo, Storage.BlobTargetOption...)} or
1392+
* {@link Storage.CopyRequest.Builder#target(BlobInfo, Iterable)}.
13921393
*
13931394
* <p>This method returns a {@link CopyWriter} object for the provided {@code CopyRequest}. If
13941395
* source and destination objects share the same location and storage class the source blob is

0 commit comments

Comments
 (0)