Browse Source

Fix compilation in eclipse

Eclipse needs a bit of extra special help with type parameters
in `TransportReplicationActionTests` now.
Nik Everett 8 years ago
parent
commit
1169cd936e

+ 2 - 1
core/src/test/java/org/elasticsearch/action/support/replication/TransportReplicationActionTests.java

@@ -1163,7 +1163,8 @@ public class TransportReplicationActionTests extends ESTestCase {
 
         @Override
         public void execute() throws Exception {
-            this.resultListener.onResponse(new TransportReplicationAction.PrimaryResult<>(null, new Response()));
+            // Using the diamond operator (<>) prevents Eclipse from being able to compile this code
+            this.resultListener.onResponse(new TransportReplicationAction.PrimaryResult<Request, Response>(null, new Response()));
         }
     }