aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/data/BeanBinder.java
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2016-09-18 09:53:39 +0300
committerDenis Anisimov <denis@vaadin.com>2016-09-23 11:08:56 +0000
commit0b5e2f34690a2a0f090a93ea1a63475a22ac3d13 (patch)
treea859f64029b513ee0c756e2b736d60fe2321dbab /server/src/main/java/com/vaadin/data/BeanBinder.java
parentcef5b51d3ff0792ab0a8a8423549dbff79e3027b (diff)
downloadvaadin-framework-0b5e2f34690a2a0f090a93ea1a63475a22ac3d13.tar.gz
vaadin-framework-0b5e2f34690a2a0f090a93ea1a63475a22ac3d13.zip
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
Diffstat (limited to 'server/src/main/java/com/vaadin/data/BeanBinder.java')
-rw-r--r--server/src/main/java/com/vaadin/data/BeanBinder.java4
1 files changed, 2 insertions, 2 deletions
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<BEAN> extends Binder<BEAN> {
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<BEAN> extends Binder<BEAN> {
* the bean {@code Class} instance, not null
*/
public BeanBinder(Class<? extends BEAN> beanType) {
- BeanValidator.checkBeanValidationAvailable();
+ BeanUtil.checkBeanValidationAvailable();
this.beanType = beanType;
}