Skip to content

Commit 0bb7a23

Browse files
committed
Merge branch '2.14'
2 parents 9b71532 + eb1a3d0 commit 0bb7a23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/fasterxml/jackson/core/json/async/AsyncNonStandardNumberParsingTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.fasterxml.jackson.core.JsonToken;
44
import com.fasterxml.jackson.core.async.AsyncTestBase;
5+
import com.fasterxml.jackson.core.exc.StreamReadException;
56
import com.fasterxml.jackson.core.json.JsonFactory;
67
import com.fasterxml.jackson.core.testsupport.AsyncReaderWrapper;
78

@@ -21,7 +22,7 @@ public void testHexadecimal() throws Exception
2122
try {
2223
p.nextToken();
2324
fail("Expected exception");
24-
} catch (Exception e) {
25+
} catch (StreamReadException e) {
2526
verifyException(e, "Unexpected character ('x'");
2627
} finally {
2728
p.close();
@@ -38,7 +39,7 @@ public void testHexadecimalBigX() throws Exception
3839
try {
3940
p.nextToken();
4041
fail("Expected exception");
41-
} catch (Exception e) {
42+
} catch (StreamReadException e) {
4243
verifyException(e, "Unexpected character ('X'");
4344
} finally {
4445
p.close();

0 commit comments

Comments
 (0)