Here you can find the source of newArrayListOnNull(List
public static <T> List<T> newArrayListOnNull(List<T> list)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static <T> List<T> newArrayListOnNull(List<T> list) { if (list == null) { list = new ArrayList<T>(); }/* w w w . j a v a2 s. c o m*/ return list; } }