From 0a009e355cbef2bedef76ddde3bc67a4393a5370 Mon Sep 17 00:00:00 2001 From: Colin Goodheart-Smithe Date: Mon, 23 Nov 2015 11:01:10 +0000 Subject: [PATCH] [TEST] Provides generics for action in ESUsersRealmTests Although the build passes on the command line the Eclipse compiler complains that the client.execute() call on line 216 does not have correct arguments because of the lack of generics. This changes adds the generics to the action variable to solve the error in Eclipse. The change is very low risk and should not adversely affect the build on the command line nor in intelliJ IDEA Original commit: elastic/x-pack-elasticsearch@08f354855651693d896e8d5850eafa17a8a74000 --- .../elasticsearch/shield/authc/esusers/ESUsersRealmTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shield/src/test/java/org/elasticsearch/shield/authc/esusers/ESUsersRealmTests.java b/shield/src/test/java/org/elasticsearch/shield/authc/esusers/ESUsersRealmTests.java index e469d375047..50481a15240 100644 --- a/shield/src/test/java/org/elasticsearch/shield/authc/esusers/ESUsersRealmTests.java +++ b/shield/src/test/java/org/elasticsearch/shield/authc/esusers/ESUsersRealmTests.java @@ -196,7 +196,7 @@ public class ESUsersRealmTests extends ESTestCase { } }; RestRequest restRequest = mock(RestRequest.class); - final Action action = mock(Action.class); + final Action action = mock(Action.class); final ActionListener listener = mock(ActionListener.class); BaseRestHandler handler = new BaseRestHandler(Settings.EMPTY, restController, client) { @Override