In other words, EMPTY_LIST is not type safe:
List list = Collections.EMPTY_LIST; Set set = Collections.EMPTY_SET; Map map = Collections.EMPTY_MAP;
Compared with:
List<String> s = Collections.emptyList(); Set<Long> l = Collections.emptySet(); Map<Date, String> d = Collections.emptyMap();
mel3kings Mar 01 '13 at 7:08 2013-03-01 07:08
source share