From 97c50a32b2b338ad37005c3191e310e1ee96daba Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Thu, 6 Feb 2020 19:19:17 -0500 Subject: [PATCH] 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. --- .../java/org/elasticsearch/xpack/autoscaling/Autoscaling.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/Autoscaling.java b/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/Autoscaling.java index a5f4916ad6f4a..cdfd099eb02c7 100644 --- a/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/Autoscaling.java +++ b/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/Autoscaling.java @@ -24,7 +24,6 @@ import org.elasticsearch.xpack.autoscaling.action.TransportGetAutoscalingDecisionAction; import org.elasticsearch.xpack.autoscaling.rest.RestGetAutoscalingDecisionHandler; -import java.util.Collections; import java.util.List; import java.util.function.Supplier; @@ -64,7 +63,7 @@ public List> getSettings() { if (enabled) { return List.of(new ActionHandler<>(GetAutoscalingDecisionAction.INSTANCE, TransportGetAutoscalingDecisionAction.class)); } else { - return Collections.emptyList(); + return List.of(); } }