You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by is...@apache.org on 2022/01/06 19:48:06 UTC
[solr] 34/34: Fixing precommit
This is an automated email from the ASF dual-hosted git repository.
ishan pushed a commit to branch jira/SOLR15694
in repository https://gitbox.apache.org/repos/asf/solr.git
commit 9518cdc9327150bc90ba0fe63f870c3f2206e2e9
Author: Ishan Chattopadhyaya <is...@apache.org>
AuthorDate: Fri Jan 7 01:15:20 2022 +0530
Fixing precommit
---
solr/core/src/java/org/apache/solr/core/NodeRoles.java | 4 +++-
solr/core/src/java/org/apache/solr/handler/ClusterAPI.java | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/core/NodeRoles.java b/solr/core/src/java/org/apache/solr/core/NodeRoles.java
index 6ca6b0f..d13b651 100644
--- a/solr/core/src/java/org/apache/solr/core/NodeRoles.java
+++ b/solr/core/src/java/org/apache/solr/core/NodeRoles.java
@@ -21,6 +21,8 @@ import org.apache.solr.common.StringUtils;
import org.apache.solr.common.cloud.ZkStateReader;
import org.apache.solr.common.util.StrUtils;
+import java.util.*;
+
public class NodeRoles {
public static final String NODE_ROLES_PROP = "solr.node.roles";
@@ -33,7 +35,7 @@ public class NodeRoles {
private Map<Role, String> nodeRoles;
public NodeRoles(String rolesString) {
- Map<Role, String> roles = new EnumMap<>(Role.class);
+ Map<Role, String> roles = new EnumMap<Role, String>(Role.class);
if (StringUtils.isEmpty(rolesString)) {
rolesString = DEFAULT_ROLES_STRING;
}
diff --git a/solr/core/src/java/org/apache/solr/handler/ClusterAPI.java b/solr/core/src/java/org/apache/solr/handler/ClusterAPI.java
index fc72ea8..a40acc0 100644
--- a/solr/core/src/java/org/apache/solr/handler/ClusterAPI.java
+++ b/solr/core/src/java/org/apache/solr/handler/ClusterAPI.java
@@ -18,6 +18,7 @@
package org.apache.solr.handler;
import java.io.IOException;
+import java.util.*;
import com.google.common.collect.Maps;
import org.apache.solr.api.Command;