@Test public void safeIterationForNullList() { final List<String> stringList = null; for (final String string : CollectionsUtil.safe(stringList)) { } }
public static <T> List<T> safe(final List<T> list) { if (list == null) { return Collections.emptyList(); } return list; }
CollectionsUtil { public static <T> List<T> safe(final List<T> list) { if (list == null) { return Collections.emptyList(); } return list; } }
CollectionsUtil { public static <T> List<T> safe(final List<T> list) { if (list == null) { return Collections.emptyList(); } return list; }  }
CollectionsUtil { public static <T> List<T> safe(final List<T> list) { if (list == null) { return Collections.emptyList(); } return list; }  static List<T> safe(final List<T> list); }
CollectionsUtil { public static <T> List<T> safe(final List<T> list) { if (list == null) { return Collections.emptyList(); } return list; }  static List<T> safe(final List<T> list);  }