diff --git a/common/src/main/java/revxrsal/commands/util/Collections.java b/common/src/main/java/revxrsal/commands/util/Collections.java index 6cea33cf..0bb2efb0 100644 --- a/common/src/main/java/revxrsal/commands/util/Collections.java +++ b/common/src/main/java/revxrsal/commands/util/Collections.java @@ -27,17 +27,18 @@ import java.util.*; -@SuppressWarnings("unchecked") public final class Collections { private Collections() {} + @SafeVarargs public static LinkedList linkedListOf(T... elements) { LinkedList list = new LinkedList<>(); java.util.Collections.addAll(list, elements); return list; } + @SafeVarargs public static List listOf(T... elements) { List list = new ArrayList<>(); java.util.Collections.addAll(list, elements);