diff options
Diffstat (limited to 'src/share/classes/sun/text/bidi/BidiBase.java')
-rw-r--r-- | src/share/classes/sun/text/bidi/BidiBase.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/share/classes/sun/text/bidi/BidiBase.java b/src/share/classes/sun/text/bidi/BidiBase.java index d6733ceb0..a803f8281 100644 --- a/src/share/classes/sun/text/bidi/BidiBase.java +++ b/src/share/classes/sun/text/bidi/BidiBase.java @@ -1106,7 +1106,7 @@ public class BidiBase { * Assume sizeNeeded>0. * If object != null, then assume size > 0. */ - private Object getMemory(String label, Object array, Class arrayClass, + private Object getMemory(String label, Object array, Class<?> arrayClass, boolean mayAllocate, int sizeNeeded) { int len = Array.getLength(array); @@ -1990,7 +1990,7 @@ public class BidiBase { cell = impTab[oldStateSeq][_prop]; levState.state = GetState(cell); /* isolate the new state */ actionSeq = impAct[GetAction(cell)]; /* isolate the action */ - addLevel = (byte)impTab[levState.state][IMPTABLEVELS_RES]; + addLevel = impTab[levState.state][IMPTABLEVELS_RES]; if (actionSeq != 0) { switch (actionSeq) { @@ -2014,7 +2014,7 @@ public class BidiBase { /* nothing, just clean up */ levState.lastStrongRTL = -1; /* check if we have a pending conditional segment */ - level = (byte)impTab[oldStateSeq][IMPTABLEVELS_RES]; + level = impTab[oldStateSeq][IMPTABLEVELS_RES]; if ((level & 1) != 0 && levState.startON > 0) { /* after ON */ start = levState.startON; /* reset to basic run level */ } @@ -2115,7 +2115,7 @@ public class BidiBase { break; case 11: /* L after L+ON+EN/AN/ON */ - level = (byte)levState.runLevel; + level = levState.runLevel; for (k = start0-1; k >= levState.startON; k--) { if (levels[k] == level+3) { while (levels[k] == level+3) { @@ -2178,7 +2178,7 @@ public class BidiBase { levState.runLevel = levels[start]; levState.impTab = impTabPair.imptab[levState.runLevel & 1]; levState.impAct = impTabPair.impact[levState.runLevel & 1]; - processPropertySeq(levState, (short)sor, start, start); + processPropertySeq(levState, sor, start, start); /* initialize for property state table */ if (dirProps[start] == NSM) { stateImp = (short)(1 + sor); @@ -2230,7 +2230,7 @@ public class BidiBase { } } /* flush possible pending sequence, e.g. ON */ - processPropertySeq(levState, (short)eor, limit, limit); + processPropertySeq(levState, eor, limit, limit); } /* perform (L1) and (X9) ---------------------------------------------------- */ @@ -3484,6 +3484,7 @@ public class BidiBase { } } + @SuppressWarnings("serial") private static AttributedCharacterIterator.Attribute getTextAttribute(String name) { |