Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

versions difference between 1.2.5 and lastest #1835

@jasonjoo2010

Description

@jasonjoo2010

There is a running difference in SerializerFeature:

public static final int WRITE_MAP_NULL_FEATURES
            = WriteMapNullValue.getMask()
            | WriteNullBooleanAsFalse.getMask()
            | WriteNullListAsEmpty.getMask()
            | WriteNullNumberAsZero.getMask()
            | WriteNullStringAsEmpty.getMask()
            ;

The lastest version will take WriteMapNullValue, WriteNullBooleanAsFalse, WriteNullListAsEmpty, WriteNullNumberAsZero, WriteNullStringAsEmpty as WriteMapNullValue while old version take SIMPLE WriteMapNullValue.

This will result different output when we set WriteNullStringAsEmpty with no WriteMapNullValue setted.
Nulled fields will be skipped in old versions but they will be "null" in newer versions.

Does it make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions