Skip to content

Check unknown target properties in new @Ignored annotation #238

Description

@thunderhook

Referencing a target that does not exist results in a compilation error.
Therefore we should support the check of target properties (MapstructTargetReference) for that annotation.

interface FooMapper {

    @Ignored(targets = "nonExistent") // mark this as unknown
    CarDto map(Car car);
}

This should also work for nested properties like @Ignored(targets = "driver.name").

Beware that writing it as an array must also work:

@Ignored(targets = { "a", "b" })

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

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions