From b6b7d2feaa81373cfa5a13ea9d246691d345ed43 Mon Sep 17 00:00:00 2001 From: Shivansh Arora Date: Wed, 4 Oct 2023 05:17:12 +0530 Subject: [PATCH] Made some funcitons private Signed-off-by: Shivansh Arora --- .../java/org/opensearch/gateway/ReplicaShardAllocator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/gateway/ReplicaShardAllocator.java b/server/src/main/java/org/opensearch/gateway/ReplicaShardAllocator.java index 2c43c25aaf775..2752c85b57750 100644 --- a/server/src/main/java/org/opensearch/gateway/ReplicaShardAllocator.java +++ b/server/src/main/java/org/opensearch/gateway/ReplicaShardAllocator.java @@ -336,7 +336,7 @@ private static Tuple> canBeAllocated * Takes the store info for nodes that have a shard store and adds them to the node decisions, * leaving the node explanations untouched for those nodes that do not have any store information. */ - public static List augmentExplanationsWithStoreInfo( + private static List augmentExplanationsWithStoreInfo( Map nodeDecisions, Map withShardStores ) { @@ -499,7 +499,7 @@ private static boolean canPerformOperationBasedRecovery( */ protected abstract boolean hasInitiatedFetching(ShardRouting shard); - public static class MatchingNode { + private static class MatchingNode { static final Comparator COMPARATOR = Comparator.comparing(m -> m.isNoopRecovery) .thenComparing(m -> m.retainingSeqNo) .thenComparing(m -> m.matchingBytes);