From a0a3369d3e82a2ee56034b9ecfec70e8c957b289 Mon Sep 17 00:00:00 2001 From: Shripad Joshi <81632229+Shripad-Joshi@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:49:24 +0530 Subject: [PATCH] fix: removed explicit type arguments that can be inferred in VertxHealthCheckEnricher (3467) --- .../jkube/vertx/enricher/VertxHealthCheckEnricher.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jkube-kit/jkube-kit-vertx/src/main/java/org/eclipse/jkube/vertx/enricher/VertxHealthCheckEnricher.java b/jkube-kit/jkube-kit-vertx/src/main/java/org/eclipse/jkube/vertx/enricher/VertxHealthCheckEnricher.java index 8c447c91b9..ca7a6358f0 100644 --- a/jkube-kit/jkube-kit-vertx/src/main/java/org/eclipse/jkube/vertx/enricher/VertxHealthCheckEnricher.java +++ b/jkube-kit/jkube-kit-vertx/src/main/java/org/eclipse/jkube/vertx/enricher/VertxHealthCheckEnricher.java @@ -146,9 +146,8 @@ private Probe discoverVertxHealthCheck(boolean readiness) { Optional timeout = getIntegerValue(Config.TIMEOUT, readiness); Optional successThreshold = getIntegerValue(Config.SUCCESS_THRESHOLD, readiness); Optional failureThreshold = getIntegerValue(Config.FAILURE_THRESHOLD, readiness); - List command = getListValue(Config.COMMAND, readiness).orElse(Collections.emptyList()); - Map headers = getMapValue(Config.HEADERS, readiness).orElse(Collections.emptyMap()); - + List command = getListValue(Config.COMMAND, readiness).orElse(Collections.emptyList()); + Map headers = getMapValue(Config.HEADERS, readiness).orElse(Collections.emptyMap()); // Validate // Port and port-name cannot be set at the same time