mirror of https://github.com/apache/lucene.git
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:
parent
d992f81da5
commit
c49d474454
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue