Skip to content

Commit 4d8e1c9

Browse files
committed
fix compilation
1 parent bde7d20 commit 4d8e1c9

File tree

68 files changed

+523
-535
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+523
-535
lines changed

client/client-benchmark-noop-api-plugin/src/main/java/org/elasticsearch/plugin/noop/NoopPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public class NoopPlugin extends Plugin implements ActionPlugin {
4141
@Override
4242
public List<ActionHandler> getActions() {
4343
return Arrays.asList(
44-
new ActionHandler<>(NOOP_BULK_ACTION, TransportNoopBulkAction.class),
45-
new ActionHandler<>(NOOP_SEARCH_ACTION, TransportNoopSearchAction.class)
44+
new ActionHandler(NOOP_BULK_ACTION, TransportNoopBulkAction.class),
45+
new ActionHandler(NOOP_SEARCH_ACTION, TransportNoopSearchAction.class)
4646
);
4747
}
4848

modules/data-streams/src/main/java/org/elasticsearch/datastreams/DataStreamsPlugin.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -225,22 +225,22 @@ public Collection<?> createComponents(PluginServices services) {
225225
@Override
226226
public List<ActionHandler> getActions() {
227227
List<ActionHandler> actions = new ArrayList<>();
228-
actions.add(new ActionHandler<>(CreateDataStreamAction.INSTANCE, CreateDataStreamTransportAction.class));
229-
actions.add(new ActionHandler<>(DeleteDataStreamAction.INSTANCE, DeleteDataStreamTransportAction.class));
230-
actions.add(new ActionHandler<>(GetDataStreamAction.INSTANCE, TransportGetDataStreamsAction.class));
231-
actions.add(new ActionHandler<>(DataStreamsStatsAction.INSTANCE, DataStreamsStatsTransportAction.class));
232-
actions.add(new ActionHandler<>(MigrateToDataStreamAction.INSTANCE, MigrateToDataStreamTransportAction.class));
233-
actions.add(new ActionHandler<>(PromoteDataStreamAction.INSTANCE, PromoteDataStreamTransportAction.class));
234-
actions.add(new ActionHandler<>(ModifyDataStreamsAction.INSTANCE, ModifyDataStreamsTransportAction.class));
235-
actions.add(new ActionHandler<>(PutDataStreamLifecycleAction.INSTANCE, TransportPutDataStreamLifecycleAction.class));
236-
actions.add(new ActionHandler<>(GetDataStreamLifecycleAction.INSTANCE, TransportGetDataStreamLifecycleAction.class));
237-
actions.add(new ActionHandler<>(DeleteDataStreamLifecycleAction.INSTANCE, TransportDeleteDataStreamLifecycleAction.class));
238-
actions.add(new ActionHandler<>(ExplainDataStreamLifecycleAction.INSTANCE, TransportExplainDataStreamLifecycleAction.class));
239-
actions.add(new ActionHandler<>(GetDataStreamLifecycleStatsAction.INSTANCE, TransportGetDataStreamLifecycleStatsAction.class));
228+
actions.add(new ActionHandler(CreateDataStreamAction.INSTANCE, CreateDataStreamTransportAction.class));
229+
actions.add(new ActionHandler(DeleteDataStreamAction.INSTANCE, DeleteDataStreamTransportAction.class));
230+
actions.add(new ActionHandler(GetDataStreamAction.INSTANCE, TransportGetDataStreamsAction.class));
231+
actions.add(new ActionHandler(DataStreamsStatsAction.INSTANCE, DataStreamsStatsTransportAction.class));
232+
actions.add(new ActionHandler(MigrateToDataStreamAction.INSTANCE, MigrateToDataStreamTransportAction.class));
233+
actions.add(new ActionHandler(PromoteDataStreamAction.INSTANCE, PromoteDataStreamTransportAction.class));
234+
actions.add(new ActionHandler(ModifyDataStreamsAction.INSTANCE, ModifyDataStreamsTransportAction.class));
235+
actions.add(new ActionHandler(PutDataStreamLifecycleAction.INSTANCE, TransportPutDataStreamLifecycleAction.class));
236+
actions.add(new ActionHandler(GetDataStreamLifecycleAction.INSTANCE, TransportGetDataStreamLifecycleAction.class));
237+
actions.add(new ActionHandler(DeleteDataStreamLifecycleAction.INSTANCE, TransportDeleteDataStreamLifecycleAction.class));
238+
actions.add(new ActionHandler(ExplainDataStreamLifecycleAction.INSTANCE, TransportExplainDataStreamLifecycleAction.class));
239+
actions.add(new ActionHandler(GetDataStreamLifecycleStatsAction.INSTANCE, TransportGetDataStreamLifecycleStatsAction.class));
240240
if (DataStream.isFailureStoreFeatureFlagEnabled()) {
241-
actions.add(new ActionHandler<>(GetDataStreamOptionsAction.INSTANCE, TransportGetDataStreamOptionsAction.class));
242-
actions.add(new ActionHandler<>(PutDataStreamOptionsAction.INSTANCE, TransportPutDataStreamOptionsAction.class));
243-
actions.add(new ActionHandler<>(DeleteDataStreamOptionsAction.INSTANCE, TransportDeleteDataStreamOptionsAction.class));
241+
actions.add(new ActionHandler(GetDataStreamOptionsAction.INSTANCE, TransportGetDataStreamOptionsAction.class));
242+
actions.add(new ActionHandler(PutDataStreamOptionsAction.INSTANCE, TransportPutDataStreamOptionsAction.class));
243+
actions.add(new ActionHandler(DeleteDataStreamOptionsAction.INSTANCE, TransportDeleteDataStreamOptionsAction.class));
244244
}
245245
return actions;
246246
}

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/IngestCommonPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public Map<String, Processor.Factory> getProcessors(Processor.Parameters paramet
8080

8181
@Override
8282
public List<ActionHandler> getActions() {
83-
return List.of(new ActionHandler<>(GrokProcessorGetAction.INSTANCE, GrokProcessorGetAction.TransportAction.class));
83+
return List.of(new ActionHandler(GrokProcessorGetAction.INSTANCE, GrokProcessorGetAction.TransportAction.class));
8484
}
8585

8686
@Override

modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/IngestGeoIpPlugin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ public List<PersistentTasksExecutor<?>> getPersistentTasksExecutor(
182182
@Override
183183
public List<ActionHandler> getActions() {
184184
return List.of(
185-
new ActionHandler<>(GeoIpStatsAction.INSTANCE, GeoIpStatsTransportAction.class),
186-
new ActionHandler<>(GetDatabaseConfigurationAction.INSTANCE, TransportGetDatabaseConfigurationAction.class),
187-
new ActionHandler<>(DeleteDatabaseConfigurationAction.INSTANCE, TransportDeleteDatabaseConfigurationAction.class),
188-
new ActionHandler<>(PutDatabaseConfigurationAction.INSTANCE, TransportPutDatabaseConfigurationAction.class)
185+
new ActionHandler(GeoIpStatsAction.INSTANCE, GeoIpStatsTransportAction.class),
186+
new ActionHandler(GetDatabaseConfigurationAction.INSTANCE, TransportGetDatabaseConfigurationAction.class),
187+
new ActionHandler(DeleteDatabaseConfigurationAction.INSTANCE, TransportDeleteDatabaseConfigurationAction.class),
188+
new ActionHandler(PutDatabaseConfigurationAction.INSTANCE, TransportPutDatabaseConfigurationAction.class)
189189
);
190190
}
191191

modules/lang-mustache/src/main/java/org/elasticsearch/script/mustache/MustachePlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public ScriptEngine getScriptEngine(Settings settings, Collection<ScriptContext<
4949
@Override
5050
public List<ActionHandler> getActions() {
5151
return Arrays.asList(
52-
new ActionHandler<>(SEARCH_TEMPLATE_ACTION, TransportSearchTemplateAction.class),
53-
new ActionHandler<>(MULTI_SEARCH_TEMPLATE_ACTION, TransportMultiSearchTemplateAction.class)
52+
new ActionHandler(SEARCH_TEMPLATE_ACTION, TransportSearchTemplateAction.class),
53+
new ActionHandler(MULTI_SEARCH_TEMPLATE_ACTION, TransportMultiSearchTemplateAction.class)
5454
);
5555
}
5656

modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ public List<ScriptContext<?>> getContexts() {
164164
@Override
165165
public List<ActionHandler> getActions() {
166166
List<ActionHandler> actions = new ArrayList<>();
167-
actions.add(new ActionHandler<>(PainlessExecuteAction.INSTANCE, PainlessExecuteAction.TransportAction.class));
168-
actions.add(new ActionHandler<>(PainlessContextAction.INSTANCE, PainlessContextAction.TransportAction.class));
167+
actions.add(new ActionHandler(PainlessExecuteAction.INSTANCE, PainlessExecuteAction.TransportAction.class));
168+
actions.add(new ActionHandler(PainlessContextAction.INSTANCE, PainlessContextAction.TransportAction.class));
169169
return actions;
170170
}
171171

modules/rank-eval/src/main/java/org/elasticsearch/index/rankeval/RankEvalPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class RankEvalPlugin extends Plugin implements ActionPlugin {
3737

3838
@Override
3939
public List<ActionHandler> getActions() {
40-
return Arrays.asList(new ActionHandler<>(ACTION, TransportRankEvalAction.class));
40+
return Arrays.asList(new ActionHandler(ACTION, TransportRankEvalAction.class));
4141
}
4242

4343
@Override

modules/reindex/src/main/java/org/elasticsearch/reindex/ReindexPlugin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public class ReindexPlugin extends Plugin implements ActionPlugin {
4747
@Override
4848
public List<ActionHandler> getActions() {
4949
return Arrays.asList(
50-
new ActionHandler<>(ReindexAction.INSTANCE, TransportReindexAction.class),
51-
new ActionHandler<>(UpdateByQueryAction.INSTANCE, TransportUpdateByQueryAction.class),
52-
new ActionHandler<>(DeleteByQueryAction.INSTANCE, TransportDeleteByQueryAction.class),
53-
new ActionHandler<>(RETHROTTLE_ACTION, TransportRethrottleAction.class)
50+
new ActionHandler(ReindexAction.INSTANCE, TransportReindexAction.class),
51+
new ActionHandler(UpdateByQueryAction.INSTANCE, TransportUpdateByQueryAction.class),
52+
new ActionHandler(DeleteByQueryAction.INSTANCE, TransportDeleteByQueryAction.class),
53+
new ActionHandler(RETHROTTLE_ACTION, TransportRethrottleAction.class)
5454
);
5555
}
5656

modules/rest-root/src/main/java/org/elasticsearch/rest/root/MainRestPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public List<RestHandler> getRestHandlers(
4848

4949
@Override
5050
public List<ActionHandler> getActions() {
51-
return List.of(new ActionHandler<>(MAIN_ACTION, TransportMainAction.class));
51+
return List.of(new ActionHandler(MAIN_ACTION, TransportMainAction.class));
5252
}
5353
}

modules/transport-netty4/src/internalClusterTest/java/org/elasticsearch/http/netty4/Netty4ChunkedContinuationsIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public static class YieldsContinuationsPlugin extends Plugin implements ActionPl
341341

342342
@Override
343343
public Collection<ActionHandler> getActions() {
344-
return List.of(new ActionHandler<>(TYPE, TransportYieldsContinuationsAction.class));
344+
return List.of(new ActionHandler(TYPE, TransportYieldsContinuationsAction.class));
345345
}
346346

347347
public static class Request extends ActionRequest {
@@ -522,7 +522,7 @@ public static class InfiniteContinuationsPlugin extends Plugin implements Action
522522

523523
@Override
524524
public Collection<ActionHandler> getActions() {
525-
return List.of(new ActionHandler<>(TYPE, TransportInfiniteContinuationsAction.class));
525+
return List.of(new ActionHandler(TYPE, TransportInfiniteContinuationsAction.class));
526526
}
527527

528528
public static class Request extends ActionRequest {

0 commit comments

Comments
 (0)