Skip to content

Commit

Permalink
HV-1767 Remove unused method from ConstraintHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Apr 17, 2020
1 parent 9436434 commit 301f87a
Showing 1 changed file with 0 additions and 10 deletions.
Expand Up @@ -813,16 +813,6 @@ private static <A extends Annotation> void putConstraint(Map<Class<? extends Ann
validators.put( constraintType, Collections.singletonList( ConstraintValidatorDescriptor.forClass( validatorType, constraintType ) ) );
}

private static <A extends Annotation> void putConstraints(Map<Class<? extends Annotation>, List<ConstraintValidatorDescriptor<?>>> validators,
Class<A> constraintType, Class<? extends ConstraintValidator<A, ?>> validatorType1, Class<? extends ConstraintValidator<A, ?>> validatorType2) {
List<ConstraintValidatorDescriptor<?>> descriptors = new ArrayList<>( 2 );

descriptors.add( ConstraintValidatorDescriptor.forClass( validatorType1, constraintType ) );
descriptors.add( ConstraintValidatorDescriptor.forClass( validatorType2, constraintType ) );

validators.put( constraintType, CollectionHelper.toImmutableList( descriptors ) );
}

private static <A extends Annotation> void putConstraints(Map<Class<? extends Annotation>, List<ConstraintValidatorDescriptor<?>>> validators,
Class<A> constraintType, List<Class<? extends ConstraintValidator<A, ?>>> validatorTypes) {
List<ConstraintValidatorDescriptor<?>> descriptors = new ArrayList<>( validatorTypes.size() );
Expand Down

0 comments on commit 301f87a

Please sign in to comment.