Skip to content

Commit

Permalink
fix(api): add safe varargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Reko Jokelainen committed Dec 7, 2015
1 parent cc7f354 commit 86e8b1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/nitorcreations/collections/NSets.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ private NSets() { /** prevent instantiation */}
* @param <V> the type of the element
* @return the set containing the values
*/
@SafeVarargs
public static <V> Set<V> asSet(V... values) {
return new HashSet<>(asList(values));
}
Expand Down

0 comments on commit 86e8b1a

Please sign in to comment.