mirror of https://github.com/apache/lucene.git
add missing assert
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1358751 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
256214c4b5
commit
571faf7aa5
|
@ -151,7 +151,9 @@ public class MockTokenizer extends Tokenizer {
|
|||
off++;
|
||||
assert Character.isLowSurrogate((char) ch2) : "unpaired high surrogate: " + Integer.toHexString(ch) + ", followed by: " + Integer.toHexString(ch2);
|
||||
return Character.toCodePoint((char) ch, (char) ch2);
|
||||
}
|
||||
} else {
|
||||
assert false : "stream ends with unpaired high surrogate: " + Integer.toHexString(ch);
|
||||
}
|
||||
}
|
||||
return ch;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue