--- old/src/share/classes/java/util/AbstractList.java 2010-12-15 14:40:37.039793983 -0800 +++ new/src/share/classes/java/util/AbstractList.java 2010-12-15 14:40:36.815286907 -0800 @@ -482,8 +482,8 @@ */ public List subList(int fromIndex, int toIndex) { return (this instanceof RandomAccess ? - new RandomAccessSubList(this, fromIndex, toIndex) : - new SubList(this, fromIndex, toIndex)); + new RandomAccessSubList<>(this, fromIndex, toIndex) : + new SubList<>(this, fromIndex, toIndex)); } // Comparison and hashing @@ -747,7 +747,7 @@ } public List subList(int fromIndex, int toIndex) { - return new SubList(this, fromIndex, toIndex); + return new SubList<>(this, fromIndex, toIndex); } private void rangeCheck(int index) { @@ -776,6 +776,6 @@ } public List subList(int fromIndex, int toIndex) { - return new RandomAccessSubList(this, fromIndex, toIndex); + return new RandomAccessSubList<>(this, fromIndex, toIndex); } }