@@ -326,8 +326,8 @@ public void writeBlobAtomic(OperationPurpose purpose, String blobName, BytesRefe
326326 * See <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a>.
327327 * @param purpose The purpose of the operation
328328 * @param sourceBlobName The name of the blob to copy from
329- * @param targetBlobContainer The blob container to copy the blob into
330- * @param targetBlobName The name of the blob to copy to
329+ * @param destinationBlobContainer The blob container to copy the blob into
330+ * @param destinationBlobName The name of the blob to copy to
331331 * @param failIfAlreadyExists Whether to throw a FileAlreadyExistsException if the target blob already exists
332332 * On S3, if true, throws UnsupportedOperationException because we don't know how
333333 * to do this atomically.
@@ -337,27 +337,27 @@ public void writeBlobAtomic(OperationPurpose purpose, String blobName, BytesRefe
337337 public void copyBlob (
338338 OperationPurpose purpose ,
339339 String sourceBlobName ,
340- BlobContainer targetBlobContainer ,
341- String targetBlobName ,
340+ BlobContainer destinationBlobContainer ,
341+ String destinationBlobName ,
342342 boolean failIfAlreadyExists
343343 ) throws IOException {
344344 assert BlobContainer .assertPurposeConsistency (purpose , sourceBlobName );
345- assert BlobContainer .assertPurposeConsistency (purpose , targetBlobName );
346- if (targetBlobContainer instanceof S3BlobContainer == false ) {
345+ assert BlobContainer .assertPurposeConsistency (purpose , destinationBlobName );
346+ if (destinationBlobContainer instanceof S3BlobContainer == false ) {
347347 throw new IllegalArgumentException ("target blob container must be a S3BlobContainer" );
348348 }
349349 if (failIfAlreadyExists ) {
350350 throw new UnsupportedOperationException ("S3 blob container does not support failIfAlreadyExists" );
351351 }
352352
353- final var s3TargetBlobContainer = (S3BlobContainer ) targetBlobContainer ;
353+ final var s3TargetBlobContainer = (S3BlobContainer ) destinationBlobContainer ;
354354
355355 // metadata is inherited from source, but not canned ACL or storage class
356356 final CopyObjectRequest copyRequest = new CopyObjectRequest (
357357 blobStore .bucket (),
358358 buildKey (sourceBlobName ),
359359 s3TargetBlobContainer .blobStore .bucket (),
360- s3TargetBlobContainer .buildKey (targetBlobName )
360+ s3TargetBlobContainer .buildKey (destinationBlobName )
361361 ).withCannedAccessControlList (blobStore .getCannedACL ()).withStorageClass (blobStore .getStorageClass ());
362362
363363 S3BlobStore .configureRequestForMetrics (copyRequest , blobStore , Operation .COPY_OBJECT , purpose );
0 commit comments