Skip to content

Commit

Permalink
Rephrase RewriteChannel and Storage.copy javadoc. Add final to CopyWr…
Browse files Browse the repository at this point in the history
…iter's StateImpl.target
  • Loading branch information
mziccard committed Mar 20, 2016
1 parent 1855ae1 commit 5dd0292
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

/**
* Google Storage blob copy writer. A {@code CopyWriter} object allows to copy both blob's data and
* information. To override source blob's information call {@link Storage#copy(Storage.CopyRequest)}
* with a {@code CopyRequest} object where the copy target is set via
* information. To override source blob's information supply a {@code BlobInfo} to the
* {@code CopyRequest} using either
* {@link Storage.CopyRequest.Builder#target(BlobInfo, Storage.BlobTargetOption...)} or
* {@link Storage.CopyRequest.Builder#target(BlobInfo, Iterable)}.
*
Expand Down Expand Up @@ -176,7 +176,7 @@ static class Builder {
private final BlobId source;
private final Map<StorageRpc.Option, ?> sourceOptions;
private final boolean overrideInfo;
private BlobInfo target;
private final BlobInfo target;
private final Map<StorageRpc.Option, ?> targetOptions;
private BlobInfo result;
private long blobSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1386,9 +1386,10 @@ public static Builder builder() {

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

0 comments on commit 5dd0292

Please sign in to comment.