diff --git a/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/discovery/DiscoveryFinderClientImpl.java b/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/discovery/DiscoveryFinderClientImpl.java index 1f8c52fd0d..8927db7dd4 100644 --- a/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/discovery/DiscoveryFinderClientImpl.java +++ b/irs-registry-client/src/main/java/org/eclipse/tractusx/irs/registryclient/discovery/DiscoveryFinderClientImpl.java @@ -68,7 +68,7 @@ public List findConnectorEndpoints(final String endpointAddr return toList(restTemplate.postForObject(endpointAddress, bpns, EdcDiscoveryResult[].class)); } - private static List toList(final T[] arr) { + private static List toList(final T... arr) { return arr == null ? List.of() : List.of(arr); }