From 892b765261a9e24eb30762f0fa34e233a010d3e0 Mon Sep 17 00:00:00 2001 From: seokhyeon <114850357+fr35wo@users.noreply.github.com> Date: Thu, 5 Sep 2024 21:54:09 +0900 Subject: [PATCH] fix: Casting 'serverUrls' to 'List' is redundant Signed-off-by: Hong SeokHyeon --- .../org/eclipse/jkube/kit/common/util/KubernetesHelperTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common/util/KubernetesHelperTest.java b/jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common/util/KubernetesHelperTest.java index c4ed7d5a7c..a0949baef7 100644 --- a/jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common/util/KubernetesHelperTest.java +++ b/jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common/util/KubernetesHelperTest.java @@ -490,7 +490,7 @@ void exportKubernetesClientConfigToFile_worksWithKubernetesMockServer(@TempDir P .hasFieldOrPropertyWithValue("cluster.insecureSkipTlsVerify", true) .extracting("cluster.server", "name") .satisfies(serverUrls -> { - List actualUrls = ((List) serverUrls).stream() + List actualUrls = serverUrls.stream() .map(Object::toString) .collect(Collectors.toList()); assertThat(actualUrls).hasSize(2)