--- old/src/share/classes/sun/font/TrueTypeFont.java 2014-02-04 23:35:36.000000000 -0800 +++ new/src/share/classes/sun/font/TrueTypeFont.java 2014-02-04 23:35:36.000000000 -0800 @@ -290,7 +290,7 @@ try { RandomAccessFile raf = (RandomAccessFile) java.security.AccessController.doPrivileged( - new java.security.PrivilegedAction() { + new java.security.PrivilegedAction() { public Object run() { try { return new RandomAccessFile(platName, "r"); @@ -1546,7 +1546,7 @@ * during typical start-up and the information here is likely never * needed. */ - protected void initAllNames(int requestedID, HashSet names) { + protected void initAllNames(int requestedID, HashSet names) { byte[] name = new byte[256]; ByteBuffer buffer = getTableBuffer(nameTag); @@ -1584,23 +1584,23 @@ } String[] getAllFamilyNames() { - HashSet aSet = new HashSet(); + HashSet aSet = new HashSet<>(); try { initAllNames(FAMILY_NAME_ID, aSet); } catch (Exception e) { /* In case of malformed font */ } - return (String[])aSet.toArray(new String[0]); + return aSet.toArray(new String[0]); } String[] getAllFullNames() { - HashSet aSet = new HashSet(); + HashSet aSet = new HashSet<>(); try { initAllNames(FULL_NAME_ID, aSet); } catch (Exception e) { /* In case of malformed font */ } - return (String[])aSet.toArray(new String[0]); + return aSet.toArray(new String[0]); } /* Used by the OpenType engine for mark positioning.