Skip to content

Redundant default parameter value assignment warning shouldn't appear if target is a string #93

@dragove

Description

@dragove

In this case

class A {
  String name;
}

@Mapping(target="name", defaultValue="")
A cloneA(A s);

the string after defaultValue shows redundant warning. In this case, it stands for empty string if s.name is null.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions