Skip to content

Commit 578d78c

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 4b3b270 commit 578d78c

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

modules/data-streams/src/main/java/org/elasticsearch/datastreams/lifecycle/health/DataStreamLifecycleHealthIndicatorService.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,11 @@ public HealthIndicatorResult calculate(boolean verbose, int maxAffectedResources
114114
}
115115
}
116116

117-
private static HealthIndicatorDetails createDetails(boolean verbose, DataStreamLifecycleHealthInfo dataStreamLifecycleHealthInfo,
118-
boolean supportsMultipleProjects) {
117+
private static HealthIndicatorDetails createDetails(
118+
boolean verbose,
119+
DataStreamLifecycleHealthInfo dataStreamLifecycleHealthInfo,
120+
boolean supportsMultipleProjects
121+
) {
119122
if (verbose == false) {
120123
return HealthIndicatorDetails.EMPTY;
121124
}

modules/data-streams/src/test/java/org/elasticsearch/datastreams/lifecycle/health/DataStreamLifecycleHealthIndicatorServiceTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ public void testMultiProject() {
135135
true,
136136
constructHealthInfo(
137137
new DataStreamLifecycleHealthInfo(
138-
List.of(
139-
new DslErrorInfo(index1, 1L, 100, projectId1),
140-
new DslErrorInfo(index2, 3L, 100, projectId2)),
138+
List.of(new DslErrorInfo(index1, 1L, 100, projectId1), new DslErrorInfo(index2, 3L, 100, projectId2)),
141139
15
142140
)
143141
)

server/src/main/java/org/elasticsearch/health/RestGetHealthAction.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public boolean canTripCircuitBreaker() {
6565

6666
@Override
6767
public Set<String> supportedCapabilities() {
68-
return Sets.union(Set.of(
69-
CAPABILITY_MULTI_PROJECT_SHARDS_AVAILABILITY,
70-
CAPABILITY_MULTI_PROJECT_DATA_STREAM_LIFECYCLE),
71-
super.supportedCapabilities());
68+
return Sets.union(
69+
Set.of(CAPABILITY_MULTI_PROJECT_SHARDS_AVAILABILITY, CAPABILITY_MULTI_PROJECT_DATA_STREAM_LIFECYCLE),
70+
super.supportedCapabilities()
71+
);
7272
}
7373
}

0 commit comments

Comments
 (0)