Fix compilation in eclipse

Eclipse needs a bit of extra special help with type parameters
in `TransportReplicationActionTests` now.
This commit is contained in:
Nik Everett 2017-01-17 14:53:54 -05:00
parent 297b1b7d9a
commit 1169cd936e
1 changed files with 2 additions and 1 deletions

View File

@ -1163,7 +1163,8 @@ public class TransportReplicationActionTests extends ESTestCase {
@Override @Override
public void execute() throws Exception { 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()));
} }
} }