File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
yaml/src/test/java/com/fasterxml/jackson/dataformat/yaml/deser Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,16 @@ public void testDupChecksEnabled() throws Exception
36
36
37
37
private void _verifyDupsOk (ObjectMapper mapper , String doc , boolean useBytes ) throws Exception
38
38
{
39
- JsonParser p = useBytes ? mapper .getFactory (). createParser (new ByteArrayInputStream (doc .getBytes ("UTF-8" )))
40
- : mapper .getFactory (). createParser (new StringReader (doc ));
39
+ JsonParser p = useBytes ? mapper .createParser (new ByteArrayInputStream (doc .getBytes ("UTF-8" )))
40
+ : mapper .createParser (new StringReader (doc ));
41
41
_stream (p );
42
42
p .close ();
43
43
}
44
44
45
45
private void _verifyDupsFail (ObjectMapper mapper , String doc , boolean useBytes ) throws Exception
46
46
{
47
- JsonParser p = useBytes ? mapper .getFactory (). createParser (new ByteArrayInputStream (doc .getBytes ("UTF-8" )))
48
- : mapper .getFactory (). createParser (new StringReader (doc ));
47
+ JsonParser p = useBytes ? mapper .createParser (new ByteArrayInputStream (doc .getBytes ("UTF-8" )))
48
+ : mapper .createParser (new StringReader (doc ));
49
49
try {
50
50
_stream (p );
51
51
} catch (JsonProcessingException e ) {
You can’t perform that action at this time.
0 commit comments