< prev index next >
src/java.base/share/classes/java/lang/Character.java
Print this page
*** 3097,3107 ****
public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F =
new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F",
"CJK UNIFIED IDEOGRAPHS EXTENSION F",
"CJKUNIFIEDIDEOGRAPHSEXTENSIONF");
! private static final int blockStarts[] = {
0x0000, // 0000..007F; Basic Latin
0x0080, // 0080..00FF; Latin-1 Supplement
0x0100, // 0100..017F; Latin Extended-A
0x0180, // 0180..024F; Latin Extended-B
0x0250, // 0250..02AF; IPA Extensions
--- 3097,3107 ----
public static final UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F =
new UnicodeBlock("CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F",
"CJK UNIFIED IDEOGRAPHS EXTENSION F",
"CJKUNIFIEDIDEOGRAPHSEXTENSIONF");
! private static final int[] blockStarts = {
0x0000, // 0000..007F; Basic Latin
0x0080, // 0080..00FF; Latin-1 Supplement
0x0100, // 0100..017F; Latin Extended-A
0x0180, // 0180..024F; Latin Extended-B
0x0250, // 0250..02AF; IPA Extensions
*** 7904,7914 ****
}
private static class CharacterCache {
private CharacterCache(){}
! static final Character cache[] = new Character[127 + 1];
static {
for (int i = 0; i < cache.length; i++)
cache[i] = new Character((char)i);
}
--- 7904,7914 ----
}
private static class CharacterCache {
private CharacterCache(){}
! static final Character[] cache = new Character[127 + 1];
static {
for (int i = 0; i < cache.length; i++)
cache[i] = new Character((char)i);
}
*** 7998,8008 ****
* {@code Character} object.
*
* @return a string representation of this object.
*/
public String toString() {
! char buf[] = {value};
return String.valueOf(buf);
}
/**
* Returns a {@code String} object representing the
--- 7998,8008 ----
* {@code Character} object.
*
* @return a string representation of this object.
*/
public String toString() {
! char[] buf = {value};
return String.valueOf(buf);
}
/**
* Returns a {@code String} object representing the
< prev index next >