@Test public void testNullToEmptyNull2() { final Integer[] array = new Integer[0]; Assert.assertArrayEquals("Must return an empty array", array, CollectionUtils.nullToEmpty(null)); }
@SuppressWarnings("unchecked") public static <T> T[] nullToEmpty(final T[] array) { return array == null ? (T[])EMPTY_ARRAY : array; }
CollectionUtils { @SuppressWarnings("unchecked") public static <T> T[] nullToEmpty(final T[] array) { return array == null ? (T[])EMPTY_ARRAY : array; } }
CollectionUtils { @SuppressWarnings("unchecked") public static <T> T[] nullToEmpty(final T[] array) { return array == null ? (T[])EMPTY_ARRAY : array; } private  CollectionUtils(); }
CollectionUtils { @SuppressWarnings("unchecked") public static <T> T[] nullToEmpty(final T[] array) { return array == null ? (T[])EMPTY_ARRAY : array; } private  CollectionUtils(); static boolean isEmpty(final Collection<T> parameter); static boolean isNotEmpty(final Collection<T> parameter); @SuppressWarnings("unchecked") static T[] nullToEmpty(final T[] array); }
CollectionUtils { @SuppressWarnings("unchecked") public static <T> T[] nullToEmpty(final T[] array) { return array == null ? (T[])EMPTY_ARRAY : array; } private  CollectionUtils(); static boolean isEmpty(final Collection<T> parameter); static boolean isNotEmpty(final Collection<T> parameter); @SuppressWarnings("unchecked") static T[] nullToEmpty(final T[] array);  }