--- old/src/share/classes/sun/java2d/loops/SurfaceType.java 2011-12-01 18:54:53.307389470 +0100 +++ new/src/share/classes/sun/java2d/loops/SurfaceType.java 2011-12-01 18:54:53.156391036 +0100 @@ -56,7 +56,7 @@ public final class SurfaceType { private static int unusedUID = 1; - private static HashMap surfaceUIDMap = new HashMap(100); + private static HashMap surfaceUIDMap = new HashMap<>(100); /* * CONSTANTS USED BY ALL PRIMITIVES TO DESCRIBE THE SURFACES @@ -402,7 +402,7 @@ } public synchronized static final int makeUniqueID(String desc) { - Integer i = (Integer) surfaceUIDMap.get((Object) desc); + Integer i = surfaceUIDMap.get(desc); if (i == null) { if (unusedUID > 255) {