Skip to content

Commit 97c50a3

Browse files
committed
Use List#of method in Autoscaling#getActions
This commit replaces a use of Collections#emptyList with List#of as the preferred approach for collection convenience methods in master.
1 parent 5a12e58 commit 97c50a3

File tree

1 file changed

+1
-2
lines changed
  • x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling

1 file changed

+1
-2
lines changed

x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/Autoscaling.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.elasticsearch.xpack.autoscaling.action.TransportGetAutoscalingDecisionAction;
2525
import org.elasticsearch.xpack.autoscaling.rest.RestGetAutoscalingDecisionHandler;
2626

27-
import java.util.Collections;
2827
import java.util.List;
2928
import java.util.function.Supplier;
3029

@@ -64,7 +63,7 @@ public List<Setting<?>> getSettings() {
6463
if (enabled) {
6564
return List.of(new ActionHandler<>(GetAutoscalingDecisionAction.INSTANCE, TransportGetAutoscalingDecisionAction.class));
6665
} else {
67-
return Collections.emptyList();
66+
return List.of();
6867
}
6968
}
7069

0 commit comments

Comments
 (0)