From 3ff9313b54b044a12f99e08d15a11e3f2f77e386 Mon Sep 17 00:00:00 2001 From: hitesh Date: Wed, 30 Oct 2024 13:36:52 -0700 Subject: [PATCH] minor change --- .../solr/client/solrj/request/beans/RateLimiterPayload.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/beans/RateLimiterPayload.java b/solr/solrj/src/java/org/apache/solr/client/solrj/request/beans/RateLimiterPayload.java index 5a1da664ee4..31df69691ef 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/beans/RateLimiterPayload.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/beans/RateLimiterPayload.java @@ -76,7 +76,7 @@ public int hashCode() { } public void overrideNodeProperty(String hostname) { - if (!this.enabled && hostname != "") { + if (!this.enabled && hostname.isEmpty()) { if (this.nodesEnabled != null && !this.nodesEnabled.isEmpty()) { String[] hosts = this.nodesEnabled.split(","); for (String host : hosts) {