jdk/src/java.base/share/classes/sun/nio/cs/AbstractCharsetProvider.java
changeset 28969 f980bee32887
parent 25859 3317bb8137f4
--- a/jdk/src/java.base/share/classes/sun/nio/cs/AbstractCharsetProvider.java	Mon Feb 16 18:30:16 2015 +0000
+++ b/jdk/src/java.base/share/classes/sun/nio/cs/AbstractCharsetProvider.java	Mon Feb 16 14:53:59 2015 -0800
@@ -111,6 +111,12 @@
         }
     }
 
+    protected boolean hasCharset(String name) {
+        synchronized (this) {
+            return classMap.containsKey(name);
+        }
+    }
+
     /* Late initialization hook, needed by some providers
      */
     protected void init() { }