Skip to content

Commit

Permalink
feat(imp):[#214] fix PMD warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Jan 18, 2024
1 parent 0d2942e commit d844e70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public List<EdcDiscoveryResult> findConnectorEndpoints(final String endpointAddr
return toList(restTemplate.postForObject(endpointAddress, bpns, EdcDiscoveryResult[].class));
}

private static <T> List<T> toList(final T[] arr) {
private static <T> List<T> toList(final T... arr) {
return arr == null ? List.of() : List.of(arr);
}

Expand Down

0 comments on commit d844e70

Please sign in to comment.