From be475bbc7e1e795ced1ca7b17095a5677ed1a314 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Tue, 17 Jul 2018 16:37:36 +1000 Subject: [PATCH] SOLR-12522: forbidden api --- .../apache/solr/client/solrj/cloud/autoscaling/Suggestion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/cloud/autoscaling/Suggestion.java b/solr/solrj/src/java/org/apache/solr/client/solrj/cloud/autoscaling/Suggestion.java index 01877df4608..c61f371c7d7 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/cloud/autoscaling/Suggestion.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/cloud/autoscaling/Suggestion.java @@ -220,7 +220,7 @@ public class Suggestion { @Override public Object computeValue(Policy.Session session, Clause.Condition cv, String collection, String shard, String node) { if (cv.computedType == ComputedType.ALL) - return new Double(getRelevantReplicasCount(session, cv, collection, shard)); + return Double.valueOf(getRelevantReplicasCount(session, cv, collection, shard)); if (cv.computedType == ComputedType.EQUAL) { int relevantReplicasCount = getRelevantReplicasCount(session, cv, collection, shard); if (relevantReplicasCount == 0) return 0;