Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#135 Enum to same enum conversions #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 17, 2021

  1. #135 Enum to same enum conversions

    When performing a conversion from an enum to the same enum, the
    AnyToEnumConverter is triggered, which performs a full cycle conversion,
    using the toString() method of source and the valueOf() of the target
    enum.
    
    When the source enum is the same as the target enum and the source enum
    has an overridden toString() method, this fails because the value can
    not be mapped to the enum.
    
    Instead, the AnyToEnumConverter now checks whether the source is of the
    same enum class as the target. If this is the case, the conversion task
    is skipped and the source is returned literally.
    robert-bor committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    65a9628 View commit details
    Browse the repository at this point in the history