Skip to content

Commit 5219847

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 15abb0f commit 5219847

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/ForceMergeStepTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ public ForceMergeStep mutateInstance(ForceMergeStep instance) {
5656

5757
@Override
5858
public ForceMergeStep copyInstance(ForceMergeStep instance) {
59-
return new ForceMergeStep(instance.getKey(), instance.getNextStepKey(), instance.getClientWithoutProject(), instance.getMaxNumSegments());
59+
return new ForceMergeStep(
60+
instance.getKey(),
61+
instance.getNextStepKey(),
62+
instance.getClientWithoutProject(),
63+
instance.getMaxNumSegments()
64+
);
6065
}
6166

6267
public void testPerformActionComplete() throws Exception {

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/MountSnapshotStepTests.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,15 @@ public MountSnapshotStep mutateInstance(MountSnapshotStep instance) {
104104
default:
105105
throw new AssertionError("Illegal randomisation branch");
106106
}
107-
return new MountSnapshotStep(key, nextKey, instance.getClientWithoutProject(), restoredIndexPrefix, storage, totalShardsPerNode, replicas);
107+
return new MountSnapshotStep(
108+
key,
109+
nextKey,
110+
instance.getClientWithoutProject(),
111+
restoredIndexPrefix,
112+
storage,
113+
totalShardsPerNode,
114+
replicas
115+
);
108116
}
109117

110118
public void testCreateWithInvalidTotalShardsPerNode() throws Exception {

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/SwapAliasesAndDeleteSourceIndexStepTests.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ public SwapAliasesAndDeleteSourceIndexStep mutateInstance(SwapAliasesAndDeleteSo
6464
case 3 -> createSourceIndexAlias = createSourceIndexAlias == false;
6565
default -> throw new AssertionError("Illegal randomisation branch");
6666
}
67-
return new SwapAliasesAndDeleteSourceIndexStep(key, nextKey, instance.getClientWithoutProject(), indexNameSupplier, createSourceIndexAlias);
67+
return new SwapAliasesAndDeleteSourceIndexStep(
68+
key,
69+
nextKey,
70+
instance.getClientWithoutProject(),
71+
indexNameSupplier,
72+
createSourceIndexAlias
73+
);
6874
}
6975

7076
public void testPerformAction() {

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/UpdateSettingsStepTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ public UpdateSettingsStep mutateInstance(UpdateSettingsStep instance) {
4646

4747
@Override
4848
public UpdateSettingsStep copyInstance(UpdateSettingsStep instance) {
49-
return new UpdateSettingsStep(instance.getKey(), instance.getNextStepKey(), instance.getClientWithoutProject(), instance.getSettings());
49+
return new UpdateSettingsStep(
50+
instance.getKey(),
51+
instance.getNextStepKey(),
52+
instance.getClientWithoutProject(),
53+
instance.getSettings()
54+
);
5055
}
5156

5257
private static IndexMetadata getIndexMetadata() {

0 commit comments

Comments
 (0)