Skip to content

Commit 9a61f36

Browse files
committed
removed optional javax.validation.spi dependency (SPR-8973)
1 parent 95e3f48 commit 9a61f36

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

org.springframework.context/src/main/java/org/springframework/validation/beanvalidation/LocalValidatorFactoryBean.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2010 the original author or authors.
2+
* Copyright 2002-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,7 +28,6 @@
2828
import javax.validation.Validator;
2929
import javax.validation.ValidatorContext;
3030
import javax.validation.ValidatorFactory;
31-
import javax.validation.spi.ValidationProvider;
3231

3332
import org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator;
3433

@@ -87,7 +86,7 @@ public class LocalValidatorFactoryBean extends SpringValidatorAdapter
8786
* @see javax.validation.Validation#byDefaultProvider()
8887
*/
8988
@SuppressWarnings("rawtypes")
90-
public void setProviderClass(Class<? extends ValidationProvider> providerClass) {
89+
public void setProviderClass(Class providerClass) {
9190
this.providerClass = providerClass;
9291
}
9392

0 commit comments

Comments
 (0)