removed redundant cast

This commit is contained in:
Martijn van Groningen 2019-09-04 11:17:10 +02:00
parent 555b630160
commit 6bec63fdfa
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@ import org.elasticsearch.client.Client;
import org.elasticsearch.client.ElasticsearchClient;
import org.elasticsearch.common.collect.Tuple;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.io.stream.Writeable;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.tasks.Task;
import org.elasticsearch.threadpool.ThreadPool;
@ -56,7 +55,7 @@ public class EnrichCoordinatorProxyAction extends ActionType<SearchResponse> {
@Inject
public TransportAction(TransportService transportService, ActionFilters actionFilters, Coordinator coordinator) {
super(NAME, transportService, actionFilters, (Writeable.Reader<SearchRequest>) SearchRequest::new);
super(NAME, transportService, actionFilters, SearchRequest::new);
this.coordinator = coordinator;
}