fixed build - cleaned up the use of guava Maps

Original commit: elastic/x-pack-elasticsearch@05b2dc4c57
This commit is contained in:
uboness 2015-09-09 16:35:51 -07:00
parent 7ae3a42c08
commit 2004cb6ad8
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ public class ESUsersTool extends CliTool {
roles.addAll(Arrays.asList(addRoles));
roles.removeAll(Arrays.asList(removeRoles));
Map<String, String[]> userRolesToWrite = Maps.newHashMapWithExpectedSize(userRoles.size());
Map<String, String[]> userRolesToWrite = new HashMap<>(userRoles.size());
userRolesToWrite.putAll(userRoles);
if (roles.size() == 0) {
userRolesToWrite.remove(username);