@Test public void wrapNullList() { assertThat(ListUtils.wrapList(null), is(Collections.emptyList())); }
public static <T> List<T> wrapList(@Nullable List<T> list) { if (list == null) { return Collections.emptyList(); } else { return list; } }
ListUtils { public static <T> List<T> wrapList(@Nullable List<T> list) { if (list == null) { return Collections.emptyList(); } else { return list; } } }
ListUtils { public static <T> List<T> wrapList(@Nullable List<T> list) { if (list == null) { return Collections.emptyList(); } else { return list; } } private  ListUtils(); }
ListUtils { public static <T> List<T> wrapList(@Nullable List<T> list) { if (list == null) { return Collections.emptyList(); } else { return list; } } private  ListUtils(); static List<T> wrapList(@Nullable List<T> list); }
ListUtils { public static <T> List<T> wrapList(@Nullable List<T> list) { if (list == null) { return Collections.emptyList(); } else { return list; } } private  ListUtils(); static List<T> wrapList(@Nullable List<T> list);  }