Add @SafeVarargs

This commit is contained in:
Gary Gregory 2024-12-08 07:46:44 -05:00
parent bcd7973998
commit 165c4af02c
1 changed files with 1 additions and 0 deletions

View File

@ -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;