fix tests-only ob1 in AutomatonTestUtil.getRandomCodePoint

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1032045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-11-06 13:17:06 +00:00
parent d992f81da5
commit c49d474454
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class AutomatonTestUtil {
} else if (t.min >= UnicodeUtil.UNI_SUR_HIGH_START) {
if (t.max > UnicodeUtil.UNI_SUR_LOW_END) {
// after surrogates
code = 1+UnicodeUtil.UNI_SUR_LOW_END+r.nextInt(t.max-UnicodeUtil.UNI_SUR_LOW_END+1);
code = 1+UnicodeUtil.UNI_SUR_LOW_END+r.nextInt(t.max-UnicodeUtil.UNI_SUR_LOW_END);
} else {
throw new IllegalArgumentException("transition accepts only surrogates: " + t);
}