Skip to content

Minor documentation issue for Validators #22945

Closed
@Anticom

Description

@Anticom

Affects: \5.0.0.M1

Hi, in the code snippet for the CustomerValidator a quote went missing

Actual:

//...
    public CustomerValidator(Validator addressValidator) {
        // ...
        if (!addressValidator.supports(Address.class)) {
            throw new IllegalArgumentException("The supplied [Validator] must " +
                support the validation of [Address] instances.");
        }
        // ...
    }
//...

Expected:

//...
    public CustomerValidator(Validator addressValidator) {
        // ...
        if (!addressValidator.supports(Address.class)) {
            throw new IllegalArgumentException("The supplied [Validator] must " +
                "support the validation of [Address] instances.");
        }
        // ...
    }
//...

Hope this is the right issue tracker to submit it to. If there's a repo for the documentation, please let me know and I can attach a PR to the issue next time 😄


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions