Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal committed Jan 14, 2023
1 parent a5f5370 commit b1712c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/src/main/java/revxrsal/commands/util/Collections.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@

import java.util.*;

@SuppressWarnings("unchecked")
public final class Collections {

private Collections() {}

@SafeVarargs
public static <T> LinkedList<T> linkedListOf(T... elements) {
LinkedList<T> list = new LinkedList<>();
java.util.Collections.addAll(list, elements);
return list;
}

@SafeVarargs
public static <T> List<T> listOf(T... elements) {
List<T> list = new ArrayList<>();
java.util.Collections.addAll(list, elements);
Expand Down

0 comments on commit b1712c2

Please sign in to comment.