Skip to content

Commit

Permalink
Remove casting
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Jul 16, 2024
1 parent 1b234b5 commit 1d7df43
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

public class TestExecutionContextPlugin extends Plugin implements ActionPlugin {

private Client client;
private PluginAwareNodeClient client;

@Override
public Collection<Object> createComponents(
Expand All @@ -63,6 +63,6 @@ public Collection<Object> createComponents(
public List<RestHandler> getRestHandlers(Settings settings, RestController restController, ClusterSettings clusterSettings,
IndexScopedSettings indexScopedSettings, SettingsFilter settingsFilter, IndexNameExpressionResolver indexNameExpressionResolver,
Supplier<DiscoveryNodes> nodesInCluster) {
return List.of(new TestGetExecutionContextRestAction((PluginAwareNodeClient) client));
return List.of(new TestGetExecutionContextRestAction(client));
}
}

0 comments on commit 1d7df43

Please sign in to comment.