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:
Robert Muir 2012-07-08 14:50:59 +00:00
parent 256214c4b5
commit 571faf7aa5
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}