src/share/classes/sun/awt/FontDescriptor.java

Print this page
rev 4099 : 7041612: Rename StandardCharset to StandardCharsets
Reviewed-by: alanb, mr, darcy

*** 24,34 **** */ package sun.awt; import java.nio.charset.Charset; import java.nio.charset.CharsetEncoder; ! import java.nio.charset.StandardCharset; import sun.nio.cs.HistoricallyNamedCharset; public class FontDescriptor implements Cloneable { static { --- 24,34 ---- */ package sun.awt; import java.nio.charset.Charset; import java.nio.charset.CharsetEncoder; ! import java.nio.charset.StandardCharsets; import sun.nio.cs.HistoricallyNamedCharset; public class FontDescriptor implements Cloneable { static {
*** 103,114 **** public boolean useUnicode() { if (useUnicode && unicodeEncoder == null) { try { this.unicodeEncoder = isLE? ! StandardCharset.UTF_16LE.newEncoder(): ! StandardCharset.UTF_16BE.newEncoder(); } catch (IllegalArgumentException x) {} } return useUnicode; } static boolean isLE; --- 103,114 ---- public boolean useUnicode() { if (useUnicode && unicodeEncoder == null) { try { this.unicodeEncoder = isLE? ! StandardCharsets.UTF_16LE.newEncoder(): ! StandardCharsets.UTF_16BE.newEncoder(); } catch (IllegalArgumentException x) {} } return useUnicode; } static boolean isLE;