adjust UnicodeSupport.mergePairs logic

when we reach the end of one array, copy the rest of the other and return
This commit is contained in:
wh0 2015-02-15 19:56:32 -08:00
parent cff91e03ff
commit 5c446f1b62

View File

@ -144,12 +144,12 @@ public class UnicodeSupport {
int j = 0;
int t = 0;
while (true) {
if (i == a.length) {
if (j == b.length) {
while (i < a.length) {
result[t++] = a[i++];
}
break;
} else if (j == b.length) {
} else if (i == a.length) {
while (j < b.length) {
result[t++] = b[j++];
}