From a3a5de756d9b8cb87b3d5842c0dd41bef9ec361b Mon Sep 17 00:00:00 2001 From: Sandeep Kumawat Date: Mon, 8 Apr 2024 10:03:06 +0530 Subject: [PATCH] resolve comments Signed-off-by: Sandeep Kumawat --- .../transfer/RemoteTransferContainer.java | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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 + ); } /**