Skip to content

Commit

Permalink
Avoid unnecessary generics in HibernateValidatorFactoryCustomizer
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Jul 13, 2022
1 parent 95189ce commit c6d89f5
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 c6d89f5

Please sign in to comment.