Skip to content

Apache Lucene open-source search software

SOLR-11739: Remove cast no longer needed

Tomas Fernandez Lobbe250e5b2aba2c
diff --git a/solr/core/src/java/org/apache/solr/cloud/SizeLimitedDistributedMap.java b/solr/core/src/java/org/apache/solr/cloud/SizeLimitedDistributedMap.java
index 7f7e75f7cfe..0cb6cbe8e87 100644
--- a/solr/core/src/java/org/apache/solr/cloud/SizeLimitedDistributedMap.java
+++ b/solr/core/src/java/org/apache/solr/cloud/SizeLimitedDistributedMap.java
@@ -68,7 +68,7 @@ public class SizeLimitedDistributedMap extends DistributedMap {
priorityQueue.insertWithOverflow(stat.getMzxid());
}
- long topElementMzxId = (Long) priorityQueue.top();
+ long topElementMzxId = priorityQueue.top();
for (String child : children) {
Stat stat = zookeeper.exists(dir + "/" + child, null, true);