--- old/src/share/classes/sun/font/FontUtilities.java 2014-02-04 23:35:32.000000000 -0800 +++ new/src/share/classes/sun/font/FontUtilities.java 2014-02-04 23:35:31.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -71,7 +71,7 @@ // This static initializer block figures out the OS constants. static { - AccessController.doPrivileged(new PrivilegedAction () { + AccessController.doPrivileged(new PrivilegedAction() { public Object run() { String osName = System.getProperty("os.name", "unknownOS"); isSolaris = osName.startsWith("SunOS"); @@ -391,7 +391,7 @@ */ private static volatile SoftReference> - compMapRef = new SoftReference(null); + compMapRef = new SoftReference<>(null); public static FontUIResource getCompositeFontUIResource(Font font) { @@ -421,7 +421,7 @@ ConcurrentHashMap compMap = compMapRef.get(); if (compMap == null) { // Its been collected. compMap = new ConcurrentHashMap(); - compMapRef = new SoftReference(compMap); + compMapRef = new SoftReference<>(compMap); } CompositeFont compFont = compMap.get(physicalFont); if (compFont == null) {