Skip to content

Commit c18641f

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 94f6356 commit c18641f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotLifecyclePolicy.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ public SnapshotLifecyclePolicy(StreamInput in) throws IOException {
130130
this.repository = in.readString();
131131
this.configuration = in.readGenericMap();
132132
this.retentionPolicy = in.readOptionalWriteable(SnapshotRetentionConfiguration::new);
133-
this.missingSnapshotUnhealthyThreshold = in.getTransportVersion().onOrAfter(TransportVersions.SLM_MISSING_SNAPSHOT_UNHEALTHY_THRESHOLD)
134-
? in.readOptionalTimeValue()
135-
: null;
133+
this.missingSnapshotUnhealthyThreshold = in.getTransportVersion()
134+
.onOrAfter(TransportVersions.SLM_MISSING_SNAPSHOT_UNHEALTHY_THRESHOLD) ? in.readOptionalTimeValue() : null;
136135
this.isCronSchedule = isCronSchedule(schedule);
137136
}
138137

x-pack/plugin/slm/src/test/java/org/elasticsearch/xpack/slm/SlmHealthIndicatorServiceTests.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,15 @@ private static Map<String, SnapshotLifecyclePolicyMetadata> createSlmPolicy(
612612
"test-policy",
613613
SnapshotLifecyclePolicyMetadata.builder()
614614
.setPolicy(
615-
new SnapshotLifecyclePolicy("policy-id", "test-policy", "", "test-repository", null, null, missingSnapshotUnhealthyThreshold)
615+
new SnapshotLifecyclePolicy(
616+
"policy-id",
617+
"test-policy",
618+
"",
619+
"test-repository",
620+
null,
621+
null,
622+
missingSnapshotUnhealthyThreshold
623+
)
616624
)
617625
.setVersion(1L)
618626
.setModifiedDate(System.currentTimeMillis())

0 commit comments

Comments
 (0)