mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ArrayUtil.contains generified to avoid warning when array is passed as vararg
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user