Skip to content

Commit 3cd78ea

Browse files
committed
...
1 parent f88a0fa commit 3cd78ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

properties/src/test/java/com/fasterxml/jackson/dataformat/javaprop/StreamClosingTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.fasterxml.jackson.dataformat.javaprop;
22

3-
import com.fasterxml.jackson.core.JsonParser;
3+
import com.fasterxml.jackson.core.StreamReadFeature;
44
import com.fasterxml.jackson.databind.ObjectMapper;
55
import com.fasterxml.jackson.dataformat.javaprop.testutil.CloseStateInputStream;
66
import com.fasterxml.jackson.dataformat.javaprop.testutil.CloseStateReader;
@@ -30,7 +30,7 @@ public void testInputStreamClosing() throws Exception
3030
in = CloseStateInputStream.forString("value = 42");
3131
assertFalse(in.closed);
3232
result = PROPS_MAPPER.readerFor(Bean179.class)
33-
.without(JsonParser.Feature.AUTO_CLOSE_SOURCE)
33+
.without(StreamReadFeature.AUTO_CLOSE_SOURCE)
3434
.readValue(in);
3535
assertNotNull(result);
3636
assertTrue(in.closed);
@@ -49,7 +49,7 @@ public void testReaderClosing() throws Exception
4949
r = CloseStateReader.forString("value = 42");
5050
assertFalse(r.closed);
5151
result = PROPS_MAPPER.readerFor(Bean179.class)
52-
.without(JsonParser.Feature.AUTO_CLOSE_SOURCE)
52+
.without(StreamReadFeature.AUTO_CLOSE_SOURCE)
5353
.readValue(r);
5454
assertNotNull(result);
5555
assertTrue(r.closed);

0 commit comments

Comments
 (0)