diff --git a/luni/src/main/java/java/nio/charset/Charsets.java b/luni/src/main/java/java/nio/charset/Charsets.java index 826b12adf04f0aa760715fb000a95ec3809c0a5c..3dede7a9364b1df213721d7ee577edd9463523ec 100644 --- a/luni/src/main/java/java/nio/charset/Charsets.java +++ b/luni/src/main/java/java/nio/charset/Charsets.java @@ -17,30 +17,11 @@ package java.nio.charset; /** - * Provides convenient access to the most important built-in charsets. Saves a hash lookup and - * unnecessary handling of UnsupportedEncodingException at call sites, compared to using the - * charset's name. - * - * Also various special-case charset conversions (for performance). + * Various special-case charset conversions (for performance). * * @hide internal use only */ public final class Charsets { - /** - * A cheap and type-safe constant for the ISO-8859-1 Charset. - */ - public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); - - /** - * A cheap and type-safe constant for the US-ASCII Charset. - */ - public static final Charset US_ASCII = Charset.forName("US-ASCII"); - - /** - * A cheap and type-safe constant for the UTF-8 Charset. - */ - public static final Charset UTF_8 = Charset.forName("UTF-8"); - /** * Returns a new byte array containing the bytes corresponding to the given characters, * encoded in US-ASCII. Unrepresentable characters are replaced by (byte) '?'.