Skip to content

Commit

Permalink
fix : replace call to toArray() with a pre-sized array with empty arr…
Browse files Browse the repository at this point in the history
…ay in KubernetesHelper (#2837)

Signed-off-by: Sintivrousai <[email protected]>
  • Loading branch information
Sintivrousai authored Apr 25, 2024
1 parent 665c064 commit e1f1382
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public static FilterWatchListDeletable<Pod, PodList, PodResource> withSelector(N
log.warn("Ignoring empty values in selector expression %s", expression);
continue;
}
String[] valuesArray = values.toArray(new String[values.size()]);
String[] valuesArray = values.toArray(new String[0]);
String operator = expression.getOperator();
switch (operator) {
case "In":
Expand Down

0 comments on commit e1f1382

Please sign in to comment.