Here you can find the source of getEmptyList(Class
@SuppressWarnings("unchecked") public static <T> List<T> getEmptyList(Class<T> cls)
//package com.java2s; import java.util.Collections; import java.util.List; public class Main { public static final List<?> emptyList = Collections.EMPTY_LIST; @SuppressWarnings("unchecked") public static <T> List<T> getEmptyList() { return (List<T>) emptyList; }/*from ww w .jav a2s .c o m*/ @SuppressWarnings("unchecked") public static <T> List<T> getEmptyList(Class<T> cls) { return (List<T>) emptyList; } }