mirror of https://github.com/apache/lucene.git
LUCENE-2630: look for the correct exception according to javadoc contract
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@996978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
92039eebaa
commit
c18ae60c8c
|
@ -43,7 +43,7 @@ public class TestCharacterUtils extends LuceneTestCase {
|
|||
try {
|
||||
java4.codePointAt(highSurrogateAt3, 4);
|
||||
fail("array index out of bounds");
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
}
|
||||
|
||||
CharacterUtils java5 = CharacterUtils.getInstance(TEST_VERSION_CURRENT);
|
||||
|
@ -54,7 +54,7 @@ public class TestCharacterUtils extends LuceneTestCase {
|
|||
try {
|
||||
java5.codePointAt(highSurrogateAt3, 4);
|
||||
fail("array index out of bounds");
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ public class TestCharacterUtils extends LuceneTestCase {
|
|||
try {
|
||||
java4.codePointAt(highSurrogateAt3, 4);
|
||||
fail("string index out of bounds");
|
||||
} catch (StringIndexOutOfBoundsException e) {
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
}
|
||||
|
||||
CharacterUtils java5 = CharacterUtils.getInstance(TEST_VERSION_CURRENT);
|
||||
|
@ -80,7 +80,7 @@ public class TestCharacterUtils extends LuceneTestCase {
|
|||
try {
|
||||
java5.codePointAt(highSurrogateAt3, 4);
|
||||
fail("string index out of bounds");
|
||||
} catch (StringIndexOutOfBoundsException e) {
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue