Skip to content

Conversation

@jtibshirani
Copy link
Contributor

@jtibshirani jtibshirani commented Sep 21, 2018

Addresses part of #29827.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Contributor

@hub-cap hub-cap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, 1 nit then you can merge :)


@Override
public Optional<ValidationException> validate() {
ValidationException exception = new ValidationException();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should try to put all the validation we can into the constructors themselves, because this layer of validation, while it does work, does not tell you where the actual error in setting a bad value came from. There are a lot of requireNotNull in constructors, so lets move any logic possible into therm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jtibshirani jtibshirani merged commit c6fcb60 into elastic:master Oct 3, 2018
@jtibshirani jtibshirani deleted the ack-watch branch October 3, 2018 09:03
kcm pushed a commit that referenced this pull request Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants