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

Only mark as required if empty value would fail validation #4139

Merged
merged 1 commit into from
May 23, 2018

Conversation

Legioth
Copy link
Member

@Legioth Legioth commented May 18, 2018

Also fixes #2261

Related to vaadin/framework#9000


This change is Reviewable

@@ -748,6 +748,10 @@ protected BindingBuilderImpl(Binder<BEAN> binder,
this.statusHandler = statusHandler;
}

Converter<FIELDVALUE, ?> getConverterValidatorChain() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

MAJOR Remove usage of generic wildcard type. rule

@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 7 issues

  • MAJOR 6 major
  • MINOR 1 minor

Watch the comments in this conversation to review them.

6 extra issues

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MAJOR Binder.java#L715: Make "field" transient or serializable. rule
  2. MAJOR Binder.java#L951: Make "field" transient or serializable. rule
  3. MAJOR Binder.java#L1268: Make "incompleteMemberFieldBindings" transient or serializable. rule
  4. MAJOR Binder.java#L1274: Make "incompleteBindings" transient or serializable. rule
  5. MAJOR Binder.java#L1278: Make "initialConverters" transient or serializable. rule
  6. MINOR Binder.java#L977: Replace this lambda with a method reference. rule

@caalador
Copy link
Contributor

:lgtm:


Reviewed 4 of 5 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@caalador caalador merged commit 9cc407d into master May 23, 2018
@caalador caalador deleted the requiredIfEmpty branch May 23, 2018 06:06
@pekam pekam added this to the 1.0.0.beta12 milestone May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace logic related to hibernate NotEmpty with new javax.validation.constraints.NotEmpty
4 participants