diff -r e7d0093bfc6c -r 679ac7841e8d jdk/src/share/classes/javax/imageio/stream/MemoryCache.java --- a/jdk/src/share/classes/javax/imageio/stream/MemoryCache.java Thu Feb 20 10:07:54 2014 -0500 +++ b/jdk/src/share/classes/javax/imageio/stream/MemoryCache.java Thu Feb 20 16:23:45 2014 -0800 @@ -58,7 +58,7 @@ private static final int BUFFER_LENGTH = 8192; - private ArrayList cache = new ArrayList(); + private ArrayList cache = new ArrayList<>(); private long cacheStart = 0L; @@ -74,7 +74,7 @@ // contiguous data... throw new IOException("Cache addressing limit exceeded!"); } - return (byte[])cache.get((int)blockOffset); + return cache.get((int)blockOffset); } /**