--- old/src/solaris/classes/sun/awt/motif/MFontConfiguration.java 2014-04-18 11:26:46.539490962 -0700 +++ new/src/solaris/classes/sun/awt/motif/MFontConfiguration.java 2014-04-18 11:26:46.396157635 -0700 @@ -67,7 +67,7 @@ * the fontconfig files. */ protected void initReorderMap() { - reorderMap = new HashMap(); + reorderMap = new HashMap<>(); if (osName == null) { /* null means SunOS */ initReorderMapForSolaris(); } else { @@ -240,7 +240,7 @@ return "sun.awt.Symbol"; } } - String encoding = (String) encodingMap.get(xlfdEncoding); + String encoding = encodingMap.get(xlfdEncoding); if (encoding == null) { encoding = "default"; } @@ -288,7 +288,7 @@ /* methods for table setup ***********************************************/ - private static HashMap encodingMap = new HashMap(); + private static HashMap encodingMap = new HashMap<>(); private void initTables() { // encodingMap maps XLFD encoding component to