changeset 14317:a8df904d5a45

8134986: Incorrect use of ConcurrentHashMap.contains in SunFontManager.java Reviewed-by: serb, jgodinez
author prr
date Thu, 14 Apr 2016 12:36:14 -0700
parents 12b94dc0e106
children a4a0eb3aa93e
files src/java.desktop/share/classes/sun/font/SunFontManager.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/sun/font/SunFontManager.java	Thu Apr 14 20:32:50 2016 +0300
+++ b/src/java.desktop/share/classes/sun/font/SunFontManager.java	Thu Apr 14 12:36:14 2016 -0700
@@ -1843,7 +1843,7 @@
 
     private PhysicalFont registerFontFile(String file) {
         if (new File(file).isAbsolute() &&
-            !registeredFonts.contains(file)) {
+            !registeredFonts.containsKey(file)) {
             int fontFormat = FONTFORMAT_NONE;
             int fontRank = Font2D.UNKNOWN_RANK;
             if (ttFilter.accept(null, file)) {