mirror of https://github.com/apache/lucene.git
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. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1667794 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fe44bfa016
commit
c568473f09
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue