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:
Robert Muir 2010-09-14 16:32:56 +00:00
parent 92039eebaa
commit c18ae60c8c
1 changed files with 4 additions and 4 deletions

View File

@ -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) {
}
}