Skip to content

Commit 85990b9

Browse files
committed
sync with name used in jackson-databind
1 parent 89dbc90 commit 85990b9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

parameter-names/src/test/java/com/fasterxml/jackson/module/paramnames/JsonCreatorTest.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
public class JsonCreatorTest
1212
{
13-
1413
@Test
1514
public void shouldDeserializeClassWithJsonCreatorOnStaticMethod() throws Exception {
1615

@@ -30,7 +29,7 @@ public void shouldDeserializeUsingDefaultPropertyCreatorSetting() throws IOExcep
3029
// given
3130
ObjectMapper objectMapper = new ObjectMapper();
3231
objectMapper.registerModule(new ParameterNamesModule());
33-
objectMapper.configure(MapperFeature.SET_PROPERTY_CREATOR_AS_DEFAULT, true);
32+
objectMapper.enable(MapperFeature.CREATOR_MODE_DEFAULT_PROPERTIES);
3433
int givenValue = 1;
3534

3635
// when

pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
<dependency>
4646
<groupId>com.fasterxml.jackson.core</groupId>
4747
<artifactId>jackson-databind</artifactId>
48-
<version>2.9.0-SNAPSHOT</version>
4948
</dependency>
5049

5150
<dependency> <!-- all modules use junit for testing -->

0 commit comments

Comments
 (0)