Skip to content

Commit

Permalink
fix: Casting 'serverUrls' to 'List<?>' is redundant
Browse files Browse the repository at this point in the history
Signed-off-by: Hong SeokHyeon <[email protected]>
  • Loading branch information
fr35wo authored Sep 5, 2024
1 parent 2fd7dbc commit 892b765
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ void exportKubernetesClientConfigToFile_worksWithKubernetesMockServer(@TempDir P
.hasFieldOrPropertyWithValue("cluster.insecureSkipTlsVerify", true)
.extracting("cluster.server", "name")
.satisfies(serverUrls -> {
List<String> actualUrls = ((List<?>) serverUrls).stream()
List<String> actualUrls = serverUrls.stream()
.map(Object::toString)
.collect(Collectors.toList());
assertThat(actualUrls).hasSize(2)
Expand Down

0 comments on commit 892b765

Please sign in to comment.