Skip to content

Apache Lucene open-source search software

Merged revision(s) 1667784 from lucene/dev/branches/branch_5x: Forward port this fix from the Java 9 bugfix, because the cast was actually wrong.

Uwe Schindlerc568473f09c7
diff --git a/solr/core/src/java/org/apache/solr/util/CommandOperation.java b/solr/core/src/java/org/apache/solr/util/CommandOperation.java
index b0974a2014d..5a28683253d 100644
--- a/solr/core/src/java/org/apache/solr/util/CommandOperation.java
+++ b/solr/core/src/java/org/apache/solr/util/CommandOperation.java
@@ -168,7 +168,7 @@ public class CommandOperation {
getMapVal(null);
if (hasError()) return emptyMap();//just to verify the type is Map
@SuppressWarnings("unchecked")
- LinkedHashMap<String,Object> cp = new LinkedHashMap<>((Map<String,?>)commandData);
+ LinkedHashMap<String, Object> cp = new LinkedHashMap<>((Map<String, Object>) commandData);
if (keys == null) return cp;
for (String key : keys) {
cp.remove(key);