File tree 1 file changed +3
-2
lines changed
src/test/java/com/fasterxml/jackson/core/json/async
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .fasterxml .jackson .core .JsonToken ;
4
4
import com .fasterxml .jackson .core .async .AsyncTestBase ;
5
+ import com .fasterxml .jackson .core .exc .StreamReadException ;
5
6
import com .fasterxml .jackson .core .json .JsonFactory ;
6
7
import com .fasterxml .jackson .core .testsupport .AsyncReaderWrapper ;
7
8
@@ -21,7 +22,7 @@ public void testHexadecimal() throws Exception
21
22
try {
22
23
p .nextToken ();
23
24
fail ("Expected exception" );
24
- } catch (Exception e ) {
25
+ } catch (StreamReadException e ) {
25
26
verifyException (e , "Unexpected character ('x'" );
26
27
} finally {
27
28
p .close ();
@@ -38,7 +39,7 @@ public void testHexadecimalBigX() throws Exception
38
39
try {
39
40
p .nextToken ();
40
41
fail ("Expected exception" );
41
- } catch (Exception e ) {
42
+ } catch (StreamReadException e ) {
42
43
verifyException (e , "Unexpected character ('X'" );
43
44
} finally {
44
45
p .close ();
You can’t perform that action at this time.
0 commit comments