Skip to content

Incorrect documentation of mapstruct.unmappedSourcePolicy default value #3635

Description

@cmcgowanprovidertrust

I think there may be a mistake in the Reference Guide documentation. In section 2.4 it describes the mapstruct.unmappedSourcePolicy and states it has a default value of WARN. But in practice, it seems that the default value is actually IGNORE. That is the behavior I get just setting up a new Mapper with no other configuration.

The source code for Mapper.java seems to support the idea that IGNORE is the intended default: ReportingPolicy unmappedSourcePolicy() default ReportingPolicy.IGNORE;

I believe this was a simple copy-paste error introduced in #2572

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions