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:
Uwe Schindler 2015-03-19 15:35:53 +00:00
parent fe44bfa016
commit c568473f09
1 changed files with 1 additions and 1 deletions

View File

@ -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);