3939import com .google .cloud .storage .UnifiedOpts .ObjectSourceOpt ;
4040import com .google .cloud .storage .UnifiedOpts .ObjectTargetOpt ;
4141import com .google .cloud .storage .UnifiedOpts .Opts ;
42- import com .google .cloud .storage .otel .OpenTelemetryTraceUtil ;
4342import com .google .cloud .storage .spi .v1 .StorageRpc ;
4443import com .google .common .base .MoreObjects ;
4544import com .google .common .base .Preconditions ;
@@ -357,12 +356,9 @@ public void partsRetainMetadata() throws Exception {
357356 new FakeStorageInternal () {
358357 @ Override
359358 public BlobInfo internalDirectUpload (
360- BlobInfo info ,
361- Opts <ObjectTargetOpt > opts ,
362- ByteBuffer buf ,
363- OpenTelemetryTraceUtil .Context ctx ) {
359+ BlobInfo info , Opts <ObjectTargetOpt > opts , ByteBuffer buf ) {
364360 metadatas .add (info .getMetadata ());
365- return super .internalDirectUpload (info , opts , buf , null );
361+ return super .internalDirectUpload (info , opts , buf );
366362 }
367363
368364 @ Override
@@ -450,10 +446,7 @@ public void creatingAnEmptyObjectWhichFailsIsSetAsResultFailureAndThrowFromClose
450446 new FakeStorageInternal () {
451447 @ Override
452448 public BlobInfo internalDirectUpload (
453- BlobInfo info ,
454- Opts <ObjectTargetOpt > opts ,
455- ByteBuffer buf ,
456- OpenTelemetryTraceUtil .Context ctx ) {
449+ BlobInfo info , Opts <ObjectTargetOpt > opts , ByteBuffer buf ) {
457450 throw StorageException .coalesce (
458451 ApiExceptionFactory .createException (
459452 null , GrpcStatusCode .of (Code .PERMISSION_DENIED ), false ));
@@ -564,10 +557,7 @@ public void shortCircuitExceptionResultsInFastFailure() throws Exception {
564557 new FakeStorageInternal () {
565558 @ Override
566559 public BlobInfo internalDirectUpload (
567- BlobInfo info ,
568- Opts <ObjectTargetOpt > opts ,
569- ByteBuffer buf ,
570- OpenTelemetryTraceUtil .Context ctx ) {
560+ BlobInfo info , Opts <ObjectTargetOpt > opts , ByteBuffer buf ) {
571561 if (induceFailure .getAndSet (false )) {
572562 Uninterruptibles .awaitUninterruptibly (blockForWrite1 );
573563 try {
@@ -581,7 +571,7 @@ public BlobInfo internalDirectUpload(
581571 blockForWrite1Complete .countDown ();
582572 }
583573 } else {
584- return super .internalDirectUpload (info , opts , buf , null );
574+ return super .internalDirectUpload (info , opts , buf );
585575 }
586576 }
587577 };
@@ -724,11 +714,8 @@ public void partFailedPreconditionOnRetryIsHandledGracefully() throws Exception
724714 new FakeStorageInternal () {
725715 @ Override
726716 public BlobInfo internalDirectUpload (
727- BlobInfo info ,
728- Opts <ObjectTargetOpt > opts ,
729- ByteBuffer buf ,
730- OpenTelemetryTraceUtil .Context ctx ) {
731- BlobInfo blobInfo = super .internalDirectUpload (info , opts , buf , null );
717+ BlobInfo info , Opts <ObjectTargetOpt > opts , ByteBuffer buf ) {
718+ BlobInfo blobInfo = super .internalDirectUpload (info , opts , buf );
732719 if (info .getName ().equals (p1 .getName ())) {
733720 throw StorageException .coalesce (
734721 ApiExceptionFactory .createException (
@@ -791,10 +778,7 @@ public void partMetadataFieldDecoratorUsesCustomTime() throws IOException {
791778 new FakeStorageInternal () {
792779 @ Override
793780 public BlobInfo internalDirectUpload (
794- BlobInfo info ,
795- Opts <ObjectTargetOpt > opts ,
796- ByteBuffer buf ,
797- OpenTelemetryTraceUtil .Context ctx ) {
781+ BlobInfo info , Opts <ObjectTargetOpt > opts , ByteBuffer buf ) {
798782 if (info .getBlobId ().getName ().endsWith (".part" )) {
799783 // Kinda hacky but since we are creating multiple parts we will use a range
800784 // to ensure the customTimes are being calculated appropriately
@@ -803,7 +787,7 @@ public BlobInfo internalDirectUpload(
803787 } else {
804788 assertThat (info .getCustomTimeOffsetDateTime ()).isNull ();
805789 }
806- return super .internalDirectUpload (info , opts , buf , null );
790+ return super .internalDirectUpload (info , opts , buf );
807791 }
808792 };
809793 ParallelCompositeUploadWritableByteChannel pcu =
@@ -859,10 +843,7 @@ private static class FakeStorageInternal implements StorageInternal {
859843
860844 @ Override
861845 public BlobInfo internalDirectUpload (
862- BlobInfo info ,
863- Opts <ObjectTargetOpt > opts ,
864- ByteBuffer buf ,
865- OpenTelemetryTraceUtil .Context ctx ) {
846+ BlobInfo info , Opts <ObjectTargetOpt > opts , ByteBuffer buf ) {
866847 BlobId id = info .getBlobId ();
867848
868849 BlobInfo .Builder b = info .toBuilder ();
0 commit comments