Skip to content

Collection fields are unnecessarily initialized to "null" #1346

@saberya

Description

@saberya

GenerationConfig has a option of "isInitializeCollections",
if it is true,
the result is

private List<Foo> fooList = new ArrayList<>();

if it is false
the result is

private List<Foo> fooList = null;

How can i get the result

private List<Foo> fooList;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions