diff --git a/core/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java b/core/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java index 024672922fa..0f0a9ae2c5d 100644 --- a/core/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java +++ b/core/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java @@ -1018,7 +1018,8 @@ public abstract class TransportReplicationAction< } transportService.sendRequest(node, transportReplicaAction, new ConcreteShardRequest<>(request, replica.allocationId().getId()), transportOptions, - new ActionListenerResponseHandler<>(listener, ReplicaResponse::new)); + // Eclipse can't handle when this is <> so we specify the type here. + new ActionListenerResponseHandler(listener, ReplicaResponse::new)); } @Override