Skip to content

Commit

Permalink
Fix names of new default-typing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 21, 2019
1 parent 337efb7 commit 08a02e1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void testSerOptNonEmpty() throws Exception {
public void testWithTypingEnabled() throws Exception {
final ObjectMapper objectMapper = mapperWithModule();
// ENABLE TYPING
objectMapper.enableDefaultTyping(new NoCheckSubTypeValidator(),
objectMapper.activateDefaultTyping(new NoCheckSubTypeValidator(),
ObjectMapper.DefaultTyping.OBJECT_AND_NON_CONCRETE);

final OptionalData myData = new OptionalData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class DefaultTypingTest extends ModuleTestBase
{
private final ObjectMapper TYPING_MAPPER = newMapper();
{
TYPING_MAPPER.enableDefaultTyping(new NoCheckSubTypeValidator());
TYPING_MAPPER.activateDefaultTyping(new NoCheckSubTypeValidator());
}

// for [datatype-jsr310#24]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class PolymorphicTest extends ModuleTestBase
{
private final ObjectMapper TYPING_MAPPER = newMapper();
{
TYPING_MAPPER.enableDefaultTyping(new NoCheckSubTypeValidator());
TYPING_MAPPER.activateDefaultTyping(new NoCheckSubTypeValidator());
}

// for [datatype-jsr310#24]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
package com.fasterxml.jackson.datatype.jsr310.ser;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import java.time.Period;
import java.time.temporal.TemporalAmount;
Expand Down

0 comments on commit 08a02e1

Please sign in to comment.