From 2004cb6ad883f09fd90fbbb5c4cf457ddfc2f6c4 Mon Sep 17 00:00:00 2001 From: uboness Date: Wed, 9 Sep 2015 16:35:51 -0700 Subject: [PATCH] fixed build - cleaned up the use of guava Maps Original commit: elastic/x-pack-elasticsearch@05b2dc4c5725a4e0b0b2208e765c6462f00f8d06 --- .../elasticsearch/shield/authc/esusers/tool/ESUsersTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shield/src/main/java/org/elasticsearch/shield/authc/esusers/tool/ESUsersTool.java b/shield/src/main/java/org/elasticsearch/shield/authc/esusers/tool/ESUsersTool.java index 62c8504a680..b2e13a99729 100644 --- a/shield/src/main/java/org/elasticsearch/shield/authc/esusers/tool/ESUsersTool.java +++ b/shield/src/main/java/org/elasticsearch/shield/authc/esusers/tool/ESUsersTool.java @@ -389,7 +389,7 @@ public class ESUsersTool extends CliTool { roles.addAll(Arrays.asList(addRoles)); roles.removeAll(Arrays.asList(removeRoles)); - Map userRolesToWrite = Maps.newHashMapWithExpectedSize(userRoles.size()); + Map userRolesToWrite = new HashMap<>(userRoles.size()); userRolesToWrite.putAll(userRoles); if (roles.size() == 0) { userRolesToWrite.remove(username);