Skip to content

Commit 735d2cc

Browse files
committed
warnings cleanup
1 parent 9ee894c commit 735d2cc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/java/com/fasterxml/jackson/databind/cfg/DeserializationConfigTest.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.Collections;
44

55
import com.fasterxml.jackson.annotation.JsonInclude;
6-
import com.fasterxml.jackson.core.JsonParser;
6+
import com.fasterxml.jackson.core.json.JsonReadFeature;
77
import com.fasterxml.jackson.databind.*;
88
import com.fasterxml.jackson.databind.introspect.ClassIntrospector;
99

@@ -59,13 +59,13 @@ public void testBasicFeatures() throws Exception
5959
public void testParserFeatures() throws Exception
6060
{
6161
DeserializationConfig config = MAPPER.getDeserializationConfig();
62-
assertNotSame(config, config.with(JsonParser.Feature.ALLOW_COMMENTS));
63-
assertNotSame(config, config.withFeatures(JsonParser.Feature.ALLOW_COMMENTS,
64-
JsonParser.Feature.ALLOW_MISSING_VALUES));
62+
assertNotSame(config, config.with(JsonReadFeature.ALLOW_JAVA_COMMENTS));
63+
assertNotSame(config, config.withFeatures(JsonReadFeature.ALLOW_JAVA_COMMENTS,
64+
JsonReadFeature.ALLOW_MISSING_VALUES));
6565

66-
assertNotSame(config, config.without(JsonParser.Feature.ALLOW_COMMENTS));
67-
assertNotSame(config, config.withoutFeatures(JsonParser.Feature.ALLOW_COMMENTS,
68-
JsonParser.Feature.ALLOW_MISSING_VALUES));
66+
assertNotSame(config, config.without(JsonReadFeature.ALLOW_JAVA_COMMENTS));
67+
assertNotSame(config, config.withoutFeatures(JsonReadFeature.ALLOW_JAVA_COMMENTS,
68+
JsonReadFeature.ALLOW_MISSING_VALUES));
6969
}
7070

7171
public void testFormatFeatures() throws Exception

0 commit comments

Comments
 (0)