diff --git a/server/src/main/java/org/opensearch/common/blobstore/transfer/RemoteTransferContainer.java b/server/src/main/java/org/opensearch/common/blobstore/transfer/RemoteTransferContainer.java index 61ac72f5ae8f6..cd2ef22327ebb 100644 --- a/server/src/main/java/org/opensearch/common/blobstore/transfer/RemoteTransferContainer.java +++ b/server/src/main/java/org/opensearch/common/blobstore/transfer/RemoteTransferContainer.java @@ -82,15 +82,17 @@ public RemoteTransferContainer( long expectedChecksum, boolean isRemoteDataIntegritySupported ) { - this.fileName = fileName; - this.remoteFileName = remoteFileName; - this.contentLength = contentLength; - this.failTransferIfFileExists = failTransferIfFileExists; - this.writePriority = writePriority; - this.offsetRangeInputStreamSupplier = offsetRangeInputStreamSupplier; - this.expectedChecksum = expectedChecksum; - this.isRemoteDataIntegritySupported = isRemoteDataIntegritySupported; - this.metadata = null; + this( + fileName, + remoteFileName, + contentLength, + failTransferIfFileExists, + writePriority, + offsetRangeInputStreamSupplier, + expectedChecksum, + isRemoteDataIntegritySupported, + null + ); } /**