Skip to content

Commit

Permalink
Merge pull request #26699 from yrodiere/validator-customizer-generics
Browse files Browse the repository at this point in the history
Avoid unnecessary generics in HibernateValidatorFactoryCustomizer
  • Loading branch information
geoand authored Jul 13, 2022
2 parents 9638383 + c6d89f5 commit e64e565
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class MyEmailHibernateValidatorFactoryCustomizer implements HibernateValidatorFactoryCustomizer {

@Override
public <T extends BaseHibernateValidatorConfiguration<T>> void customize(T configuration) {
public void customize(BaseHibernateValidatorConfiguration<?> configuration) {
ConstraintMapping constraintMapping = configuration.createConstraintMapping();

constraintMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class MyMultipleHibernateValidatorFactoryCustomizer implements HibernateValidatorFactoryCustomizer {

@Override
public <T extends BaseHibernateValidatorConfiguration<T>> void customize(T configuration) {
public void customize(BaseHibernateValidatorConfiguration<?> configuration) {
ConstraintMapping constraintMapping = configuration.createConstraintMapping();

constraintMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class MyNumberHibernateValidatorFactoryCustomizer implements HibernateValidatorFactoryCustomizer {

@Override
public <T extends BaseHibernateValidatorConfiguration<T>> void customize(T configuration) {
public void customize(BaseHibernateValidatorConfiguration<?> configuration) {
ConstraintMapping constraintMapping = configuration.createConstraintMapping();

constraintMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
*/
public interface HibernateValidatorFactoryCustomizer {

<T extends BaseHibernateValidatorConfiguration<T>> void customize(T configuration);
void customize(BaseHibernateValidatorConfiguration<?> configuration);
}

0 comments on commit e64e565

Please sign in to comment.