Skip to content

Commit b9e5317

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 04cea26 commit b9e5317

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationCheckerTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ public class IndexDeprecationCheckerTests extends ESTestCase {
4949
private static final IndexVersion OLD_VERSION = IndexVersion.fromId(7170099);
5050
private final IndexNameExpressionResolver indexNameExpressionResolver = TestIndexNameExpressionResolver.newInstance();
5151
private final IndexDeprecationChecker checker = new IndexDeprecationChecker(indexNameExpressionResolver);
52-
private final TransportDeprecationInfoAction.PrecomputedData emptyPrecomputedData =
53-
new TransportDeprecationInfoAction.PrecomputedData(null);
52+
private final TransportDeprecationInfoAction.PrecomputedData emptyPrecomputedData = new TransportDeprecationInfoAction.PrecomputedData(
53+
null
54+
);
5455
private final IndexMetadata.State indexMetdataState;
5556

5657
public IndexDeprecationCheckerTests(@Name("indexMetadataState") IndexMetadata.State indexMetdataState) {

x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/TransportDeprecationInfoActionTests.java

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -418,16 +418,18 @@ public void testMasterOperation() throws InterruptedException {
418418
NodeClient client = new NoOpNodeClient(threadPool) {
419419
@SuppressWarnings("unchecked")
420420
@Override
421-
public <Request extends ActionRequest, Response extends ActionResponse> void doExecute(ActionType<Response> action,
422-
Request request,
423-
ActionListener<Response> listener) {
421+
public <Request extends ActionRequest, Response extends ActionResponse> void doExecute(
422+
ActionType<Response> action,
423+
Request request,
424+
ActionListener<Response> listener
425+
) {
424426
switch (action.name()) {
425427
case NodesDeprecationCheckAction.NAME:
426428
NodesDeprecationCheckAction.NodeResponse nodeResponse = new NodesDeprecationCheckAction.NodeResponse(
427429
node1,
428-
List.of(new DeprecationIssue(
429-
DeprecationIssue.Level.WARNING, "Node issue", "http://url", "details", false, null
430-
))
430+
List.of(
431+
new DeprecationIssue(DeprecationIssue.Level.WARNING, "Node issue", "http://url", "details", false, null)
432+
)
431433
);
432434
NodesDeprecationCheckResponse nodesResponse = new NodesDeprecationCheckResponse(
433435
ClusterName.DEFAULT,
@@ -447,7 +449,10 @@ public <Request extends ActionRequest, Response extends ActionResponse> void doE
447449

448450
// Disable ML to avoid MlDeprecationChecker making calls
449451
Settings settings = Settings.builder().put("xpack.ml.enabled", false).build();
450-
ClusterSettings clusterSettings = new ClusterSettings(settings, Set.copyOf(CollectionUtils.appendToCopy(BUILT_IN_CLUSTER_SETTINGS, SKIP_DEPRECATIONS_SETTING)));
452+
ClusterSettings clusterSettings = new ClusterSettings(
453+
settings,
454+
Set.copyOf(CollectionUtils.appendToCopy(BUILT_IN_CLUSTER_SETTINGS, SKIP_DEPRECATIONS_SETTING))
455+
);
451456
when(clusterService.getClusterSettings()).thenReturn(clusterSettings);
452457
when(clusterService.getClusterName()).thenReturn(ClusterName.DEFAULT);
453458

0 commit comments

Comments
 (0)