You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by tf...@apache.org on 2018/02/16 00:23:28 UTC

[2/2] lucene-solr:branch_7x: SOLR-11739: Remove cast no longer needed

SOLR-11739: Remove cast no longer needed


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/dfb0803b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/dfb0803b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/dfb0803b

Branch: refs/heads/branch_7x
Commit: dfb0803bbb972d730627fbdcd4df66558d06f13a
Parents: f6b6f50
Author: Tomas Fernandez Lobbe <tf...@apache.org>
Authored: Thu Feb 15 16:22:28 2018 -0800
Committer: Tomas Fernandez Lobbe <tf...@apache.org>
Committed: Thu Feb 15 16:23:09 2018 -0800

----------------------------------------------------------------------
 .../src/java/org/apache/solr/cloud/SizeLimitedDistributedMap.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/dfb0803b/solr/core/src/java/org/apache/solr/cloud/SizeLimitedDistributedMap.java
----------------------------------------------------------------------
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 7f7e75f..0cb6cbe 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);