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