diff --git a/core/src/main/java/org/elasticsearch/cluster/routing/RoutingTable.java b/core/src/main/java/org/elasticsearch/cluster/routing/RoutingTable.java index d27c1c098ae..1a582e63ad2 100644 --- a/core/src/main/java/org/elasticsearch/cluster/routing/RoutingTable.java +++ b/core/src/main/java/org/elasticsearch/cluster/routing/RoutingTable.java @@ -188,7 +188,6 @@ public class RoutingTable implements Iterable, Diffable ACTIVE_PREDICATE = shardRouting -> shardRouting.active(); private static Predicate ASSIGNED_PREDICATE = shardRouting -> shardRouting.assignedToNode(); - // TODO: replace with JDK 8 native java.util.function.Predicate private GroupShardsIterator allSatisfyingPredicateShardsGrouped(String[] indices, boolean includeEmpty, boolean includeRelocationTargets, Predicate predicate) { // use list here since we need to maintain identity across shards ArrayList set = new ArrayList<>(); @@ -222,7 +221,6 @@ public class RoutingTable implements Iterable, Diffable true, true); } - // TODO: replace with JDK 8 native java.util.function.Predicate private ShardsIterator allShardsSatisfyingPredicate(String[] indices, Predicate predicate, boolean includeRelocationTargets) { // use list here since we need to maintain identity across shards List shards = new ArrayList<>();