1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/java/jboss72/files/patch-JCAValidatorFactory.java
Chris Rees 6ad37e2951 Introducing jboss72
PR:		ports/176960
Submitted by:	Alexander Yerenkow <yerenkow@gmail.com>
2013-03-14 21:22:00 +00:00

12 lines
930 B
Java

--- connector/src/main/java/org/jboss/as/connector/util/JCAValidatorFactory.java.orig 2012-11-14 23:35:33.000000000 +0000
+++ connector/src/main/java/org/jboss/as/connector/util/JCAValidatorFactory.java 2012-09-21 12:14:04.000000000 +0000
@@ -92,7 +92,7 @@ public class JCAValidatorFactory impleme
if (configuration == null) {
ConstraintMapping mapping = new ConstraintMapping();
HibernateValidatorConfiguration config =
- Validation.byProvider(HibernateValidator.class).providerResolver(new JBossProviderResolver()).configure();
+ Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new JBossProviderResolver()).configure();
config.addMapping(mapping);
ValidatorFactory factory = config.buildValidatorFactory();
return factory;