From c38388c50631a9a1a12c6e691462b98b046b0d28 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 5 May 2020 07:35:13 -0400 Subject: [PATCH] Fix compiling in TransportValidateQueryActionTests This arose after a backport where we do not have the nicities of the Java 11 diamond operator. This commit fixes it by adding the proper type parameter. --- .../validate/query/TransportValidateQueryActionTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/action/admin/indices/validate/query/TransportValidateQueryActionTests.java b/server/src/test/java/org/elasticsearch/action/admin/indices/validate/query/TransportValidateQueryActionTests.java index 866c48fba4e..ead66e644d4 100644 --- a/server/src/test/java/org/elasticsearch/action/admin/indices/validate/query/TransportValidateQueryActionTests.java +++ b/server/src/test/java/org/elasticsearch/action/admin/indices/validate/query/TransportValidateQueryActionTests.java @@ -36,7 +36,7 @@ public class TransportValidateQueryActionTests extends ESSingleNodeTestCase { */ public void testListenerOnlyInvokedOnceWhenIndexDoesNotExist() { final AtomicBoolean invoked = new AtomicBoolean(); - final ActionListener listener = new ActionListener<>() { + final ActionListener listener = new ActionListener() { @Override public void onResponse(final ValidateQueryResponse validateQueryResponse) {