In Collections I've found the following:
@SuppressWarnings("unchecked")
public static final List EMPTY_LIST = new EmptyList<>();
I really can't find any reason to use:
new EmptyList<>()
here instead of:
new EmptyList()
as it would be for java < 1.7.
Is there any difference between this approach?