Skip to content

Commit

Permalink
Removed unnecessary assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Aug 26, 2023
1 parent b2113f2 commit d48f9f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -900,9 +900,7 @@ protected MapSerializer _checkMapContentInclusion(SerializerProvider prov,
break;
case CUSTOM: // new with 2.9
valueToSuppress = prov.includeFilterInstance(null, inclV.getContentFilter());
if (valueToSuppress == null) { // is this legal?
suppressNulls = true;
} else {
if (valueToSuppress != null) { // is this legal?
suppressNulls = prov.includeFilterSuppressNulls(valueToSuppress);
}
break;
Expand Down Expand Up @@ -967,9 +965,7 @@ protected JsonSerializer<?> buildMapEntrySerializer(SerializerProvider prov,
break;
case CUSTOM:
valueToSuppress = prov.includeFilterInstance(null, inclV.getContentFilter());
if (valueToSuppress == null) { // is this legal?
suppressNulls = true;
} else {
if (valueToSuppress != null) { // is this legal?
suppressNulls = prov.includeFilterSuppressNulls(valueToSuppress);
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,8 @@ public JsonSerializer<?> createContextual(SerializerProvider provider,
}
}

MapEntrySerializer mser = withResolved(property, keySer, ser,
valueToSuppress, suppressNulls);
// but note: no (full) filtering or sorting (unlike Maps)
return mser;
return withResolved(property, keySer, ser, valueToSuppress, suppressNulls);
}

/*
Expand Down

0 comments on commit d48f9f6

Please sign in to comment.