Skip to content

Disable Implicit Type Conversions #1428

@FatihErdem

Description

@FatihErdem

Hi,

I want to disable implicit type conversion. For example:

class MyDto {
    private String rate;
}
class MyResponse {
    private Float rate;
}

When I try to convert these two classes, MapStruct doesn't show any error and make automatic conversion between types even if field types are different. Is there any option to get build failure when field types doesn't match?

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