From 0b5e2f34690a2a0f090a93ea1a63475a22ac3d13 Mon Sep 17 00:00:00 2001 From: Denis Anisimov Date: Sun, 18 Sep 2016 09:53:39 +0300 Subject: Extract validation availability check out of BeanValidator (#251). BeanValidator uses and depends on javax.validation classes. So JSR303 presence check is extracted out of it to avoid ClassNotFoundException. Change-Id: I8df9a9da873cf694a326c9abb05315c8e94a0a96 --- server/src/main/java/com/vaadin/data/BeanBinder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src/main/java/com/vaadin/data/BeanBinder.java') diff --git a/server/src/main/java/com/vaadin/data/BeanBinder.java b/server/src/main/java/com/vaadin/data/BeanBinder.java index b27e3ee4c3..c73b89de81 100644 --- a/server/src/main/java/com/vaadin/data/BeanBinder.java +++ b/server/src/main/java/com/vaadin/data/BeanBinder.java @@ -176,7 +176,7 @@ public class BeanBinder extends Binder { finalBinding = withConverter(createConverter()); - if (BeanValidator.checkBeanValidationAvailable()) { + if (BeanUtil.checkBeanValidationAvailable()) { finalBinding = finalBinding.withValidator(new BeanValidator( getBinder().beanType, propertyName, findLocale())); } @@ -262,7 +262,7 @@ public class BeanBinder extends Binder { * the bean {@code Class} instance, not null */ public BeanBinder(Class beanType) { - BeanValidator.checkBeanValidationAvailable(); + BeanUtil.checkBeanValidationAvailable(); this.beanType = beanType; } -- cgit v1.2.3