< prev index next >
src/java.desktop/unix/classes/sun/awt/X11InputMethodBase.java
Print this page
*** 125,135 ****
protected transient long pData = 0; // accessed by native
// Initialize highlight mapping table
static {
@SuppressWarnings({"unchecked", "rawtypes"})
! Map<TextAttribute, ?> styles[] = new Map[4];
HashMap<TextAttribute, Object> map;
// UNSELECTED_RAW_TEXT_HIGHLIGHT
map = new HashMap<>(1);
map.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD);
--- 125,135 ----
protected transient long pData = 0; // accessed by native
// Initialize highlight mapping table
static {
@SuppressWarnings({"unchecked", "rawtypes"})
! Map<TextAttribute, ?>[] styles = new Map[4];
HashMap<TextAttribute, Object> map;
// UNSELECTED_RAW_TEXT_HIGHLIGHT
map = new HashMap<>(1);
map.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD);
*** 488,498 ****
// NOTE: This method may be called by privileged threads.
// This functionality is implemented in a package-private method
// to insure that it cannot be overridden by client subclasses.
// DO NOT INVOKE CLIENT CODE ON THIS THREAD!
abstract void dispatchComposedText(String chgText,
! int chgStyles[],
int chgOffset,
int chgLength,
int caretPosition,
long when);
--- 488,498 ----
// NOTE: This method may be called by privileged threads.
// This functionality is implemented in a package-private method
// to insure that it cannot be overridden by client subclasses.
// DO NOT INVOKE CLIENT CODE ON THIS THREAD!
abstract void dispatchComposedText(String chgText,
! int[] chgStyles,
int chgOffset,
int chgLength,
int caretPosition,
long when);
< prev index next >