This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push: new 165c4af02 Add @SafeVarargs 165c4af02 is described below commit 165c4af02c7f0e8262eec1763ee1f5743e0dc599 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Dec 8 07:46:44 2024 -0500 Add @SafeVarargs --- src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java b/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java index fdcfce6a1..17a99c1e1 100644 --- a/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java +++ b/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java @@ -57,6 +57,7 @@ public class MultiKey<K> implements Serializable { return (Class<? extends T>) (value == null ? Object.class : value.getClass()); } + @SafeVarargs private static <T> Class<? extends T> getComponentType(final T... values) { @SuppressWarnings("unchecked") final Class<? extends T> rootClass = (Class<? extends T>) Object.class;