mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
c982c3c246
PR: 173713 Submitted by: Alexander Yerenkow <yerenkow AT gmail DOT com>
12 lines
960 B
Java
12 lines
960 B
Java
--- jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java.orig 2012-11-15 00:06:15.000000000 +0000
|
|
+++ jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java 2012-09-21 12:14:04.000000000 +0000
|
|
@@ -78,7 +78,7 @@ public class JPALazyValidatorFactory imp
|
|
try {
|
|
SecurityActions.setContextClassLoader(oldTCCL);
|
|
ConstraintMapping mapping = new ConstraintMapping();
|
|
- HibernateValidatorConfiguration config = Validation.byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
|
|
+ HibernateValidatorConfiguration config = Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
|
|
config.addMapping(mapping);
|
|
ValidatorFactory factory = config.buildValidatorFactory();
|
|
return factory;
|