From 5c8ad6f7ccd9d8cd4ded43a70ef0be2fb7e74b5f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Jan 2023 21:22:08 +0000 Subject: [PATCH] Removed unnecessary use of Long.toString from BlobStoreRepository. (#5833) Signed-off-by: Mani (cherry picked from commit db30439d67560dc893904eceab954d9a92ab03c1) Signed-off-by: github-actions[bot] --- .../opensearch/repositories/blobstore/BlobStoreRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java b/server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java index 50388a1354327..c54de8d979aaf 100644 --- a/server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java +++ b/server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java @@ -1884,7 +1884,7 @@ private RepositoryData getRepositoryData(long indexGen) { return RepositoryData.EMPTY; } try { - final String snapshotsIndexBlobName = INDEX_FILE_PREFIX + Long.toString(indexGen); + final String snapshotsIndexBlobName = INDEX_FILE_PREFIX + indexGen; // EMPTY is safe here because RepositoryData#fromXContent calls namedObject try (