Skip to content

Commit 86e8b1a

Browse files
author
Reko Jokelainen
committed
fix(api): add safe varargs
1 parent cc7f354 commit 86e8b1a

File tree

1 file changed

+1
-0
lines changed
  • src/main/java/com/nitorcreations/collections

1 file changed

+1
-0
lines changed

src/main/java/com/nitorcreations/collections/NSets.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ private NSets() { /** prevent instantiation */}
2020
* @param <V> the type of the element
2121
* @return the set containing the values
2222
*/
23+
@SafeVarargs
2324
public static <V> Set<V> asSet(V... values) {
2425
return new HashSet<>(asList(values));
2526
}

0 commit comments

Comments
 (0)