]> source.dussan.org Git - vaadin-framework.git/commitdiff
Support for javax.validation @NotEmpty annotation. (#11985)
authorMartín López <mlopez@flowingcode.com>
Tue, 12 May 2020 07:47:25 +0000 (04:47 -0300)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 07:47:25 +0000 (10:47 +0300)
Fixes #10914

server/src/main/java/com/vaadin/data/RequiredFieldConfigurator.java

index c4071e9d9839846b149714572b71fe876365799a..8636c68012f5f0b4369738848e323f800e915d35 100644 (file)
@@ -50,7 +50,8 @@ public interface RequiredFieldConfigurator
      */
     public RequiredFieldConfigurator NOT_EMPTY = annotation -> annotation
             .annotationType().getName()
-            .equals("org.hibernate.validator.constraints.NotEmpty");
+            .equals("org.hibernate.validator.constraints.NotEmpty") || annotation
+            .annotationType().getName().equals("javax.validation.constraints.NotEmpty");
 
     /**
      * Configurator which is aware of {@literal Size} annotation with