Fix compilation in Eclipse (#21606)

* Fix compilation in Eclipse

I'm not sure what the bug is, but ecj doesn't like this expression
unless the type is set explicitly.

* Add comment explaining why no diamond operator
This commit is contained in:
Nik Everett 2016-11-17 12:54:57 -05:00 committed by GitHub
parent 09fbb4d06d
commit 2a1e08f76a
1 changed files with 2 additions and 1 deletions

View File

@ -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<ReplicaResponse>(listener, ReplicaResponse::new));
}
@Override