From 165c4af02c7f0e8262eec1763ee1f5743e0dc599 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 8 Dec 2024 07:46:44 -0500 Subject: [PATCH] Add @SafeVarargs --- .../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 fdcfce6a13..17a99c1e11 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 @@ private static Class getClass(final T value) { return (Class) (value == null ? Object.class : value.getClass()); } + @SafeVarargs private static Class getComponentType(final T... values) { @SuppressWarnings("unchecked") final Class rootClass = (Class) Object.class;