Skip to content

Commit 12b28ba

Browse files
committed
Merge branch '2.19' into 2.x
2 parents 6877a5c + 09ec797 commit 12b28ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

datatypes/src/test/java/com/fasterxml/jackson/datatype/jdk8/OptionalTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,10 @@ public void testTypeResolution() throws Exception
284284
}
285285

286286
// [modules-java8#372]
287-
public void testIssue372() throws Exception
287+
public void testIssue372Deser() throws Exception
288288
{
289289
JsonNode input = MAPPER.getNodeFactory().textNode("abc");
290-
//JavaType type = MAPPER.getTypeFactory().constructType(Optional.class);
291290
JavaType type = TypeFactory.defaultInstance().constructType(Optional.class);
292-
//JavaType type = MAPPER.constructType(Optional.class);
293291
Optional<?> value = MAPPER.readValue(MAPPER.treeAsTokens(input), type);
294292
assertEquals(Optional.of("abc"), value);
295293
}

0 commit comments

Comments
 (0)