ArrayUtil.contains generified to avoid warning when array is passed as vararg

This commit is contained in:
nik
2016-04-05 11:53:15 +03:00
parent 727647a23a
commit 4963695903
@@ -825,7 +825,7 @@ public class ArrayUtil extends ArrayUtilRt {
}
@Contract(pure=true)
public static boolean contains(@Nullable final Object o, @NotNull Object... objects) {
public static <T> boolean contains(@Nullable final T o, @NotNull T... objects) {
return indexOf(objects, o) >= 0;
}