Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Dec 19, 2020
1 parent db24e88 commit ee5e219
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ static class AtomicBooleanWrapper {

private final ObjectMapper DEFAULT_MAPPER = newPropertiesMapper();

private final ObjectMapper MAPPER_STRING_TO_BOOLEAN_FAIL; {
MAPPER_STRING_TO_BOOLEAN_FAIL = newPropertiesMapper();
private final ObjectMapper MAPPER_STRING_TO_BOOLEAN_FAIL
= propertiesMapperBuilder().build();
{
MAPPER_STRING_TO_BOOLEAN_FAIL.coercionConfigFor(LogicalType.Boolean)
.setCoercion(CoercionInputShape.String, CoercionAction.Fail);
}

private final ObjectMapper MAPPER_EMPTY_TO_BOOLEAN_FAIL; {
MAPPER_EMPTY_TO_BOOLEAN_FAIL = newPropertiesMapper();
private final ObjectMapper MAPPER_EMPTY_TO_BOOLEAN_FAIL
= propertiesMapperBuilder().build();
{
MAPPER_EMPTY_TO_BOOLEAN_FAIL.coercionConfigFor(LogicalType.Boolean)
.setCoercion(CoercionInputShape.EmptyString, CoercionAction.Fail);
}
Expand Down

0 comments on commit ee5e219

Please sign in to comment.