Apply @SafeVarargs to ManagedMap.ofEntries(...)

This commit is contained in:
Sam Brannen 2022-03-14 20:24:57 +01:00
parent 887389d341
commit 6e2e45d18f
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ public class ManagedMap<K, V> extends LinkedHashMap<K, V> implements Mergeable,
* @return a {@code Map} containing the specified mappings
* @since 5.3.16
*/
@SafeVarargs
@SuppressWarnings("unchecked")
public static <K,V> ManagedMap<K,V> ofEntries(Entry<? extends K, ? extends V>... entries) {
ManagedMap<K,V > map = new ManagedMap<>();