54
54
import org .hibernate .validator .internal .util .logging .formatter .ClassObjectFormatter ;
55
55
import org .hibernate .validator .internal .util .logging .formatter .CollectionOfClassesObjectFormatter ;
56
56
import org .hibernate .validator .internal .util .logging .formatter .CollectionOfObjectsToStringFormatter ;
57
- import org .hibernate .validator .internal .util .logging .formatter .ConstrainableFormatter ;
58
57
import org .hibernate .validator .internal .util .logging .formatter .DurationFormatter ;
59
58
import org .hibernate .validator .internal .util .logging .formatter .ExecutableFormatter ;
60
59
import org .hibernate .validator .internal .util .logging .formatter .ObjectArrayFormatter ;
@@ -252,13 +251,13 @@ GroupDefinitionException getUnableToExpandDefaultGroupListException(@FormatWith(
252
251
GroupDefinitionException getWrongDefaultGroupSequenceProviderTypeException (@ FormatWith (ClassObjectFormatter .class ) Class <?> beanClass );
253
252
254
253
@ Message (id = 56 , value = "Method or constructor %1$s doesn't have a parameter with index %2$d." )
255
- IllegalArgumentException getInvalidExecutableParameterIndexException (@ FormatWith ( ConstrainableFormatter . class ) Callable callable , int index );
254
+ IllegalArgumentException getInvalidExecutableParameterIndexException (Callable callable , int index );
256
255
257
256
@ Message (id = 59 , value = "Unable to retrieve annotation parameter value." )
258
257
ValidationException getUnableToRetrieveAnnotationParameterValueException (@ Cause Exception e );
259
258
260
259
@ Message (id = 62 , value = "Method or constructor %1$s has %2$s parameters, but the passed list of parameter meta data has a size of %3$s." )
261
- IllegalArgumentException getInvalidLengthOfParameterMetaDataListException (@ FormatWith ( ConstrainableFormatter . class ) Callable callable , int nbParameters , int listSize );
260
+ IllegalArgumentException getInvalidLengthOfParameterMetaDataListException (Callable callable , int nbParameters , int listSize );
262
261
263
262
@ Message (id = 63 , value = "Unable to instantiate %s." )
264
263
ValidationException getUnableToInstantiateException (@ FormatWith (ClassObjectFormatter .class ) Class <?> clazz , @ Cause Exception e );
@@ -464,11 +463,11 @@ ConstraintDeclarationException getMultipleGroupConversionsForSameSourceException
464
463
465
464
@ Message (id = 131 ,
466
465
value = "A method return value must not be marked for cascaded validation more than once in a class hierarchy, but the following two methods are marked as such: %s, %s." )
467
- ConstraintDeclarationException getMethodReturnValueMustNotBeMarkedMoreThanOnceForCascadedValidationException (@ FormatWith ( ConstrainableFormatter . class ) Callable executable1 , @ FormatWith ( ConstrainableFormatter . class ) Callable executable2 );
466
+ ConstraintDeclarationException getMethodReturnValueMustNotBeMarkedMoreThanOnceForCascadedValidationException (Callable executable1 , Callable executable2 );
468
467
469
468
@ Message (id = 132 ,
470
469
value = "Void methods must not be constrained or marked for cascaded validation, but method %s is." )
471
- ConstraintDeclarationException getVoidMethodsMustNotBeConstrainedException (@ FormatWith ( ConstrainableFormatter . class ) Callable callable );
470
+ ConstraintDeclarationException getVoidMethodsMustNotBeConstrainedException (Callable callable );
472
471
473
472
@ Message (id = 133 , value = "%1$s does not contain a constructor with the parameter types %2$s." )
474
473
ValidationException getBeanDoesNotContainConstructorException (@ FormatWith (ClassObjectFormatter .class ) Class <?> beanClass ,
@@ -503,7 +502,7 @@ ConstraintDeclarationException getImplicitConstraintTargetInAmbiguousConfigurati
503
502
@ Message (id = 142 ,
504
503
value = "Cross parameter constraint %1$s is illegally placed on a parameterless method or constructor '%2$s'." )
505
504
ConstraintDeclarationException getCrossParameterConstraintOnMethodWithoutParametersException (
506
- @ FormatWith (ClassObjectFormatter .class ) Class <? extends Annotation > constraint , @ FormatWith ( ConstrainableFormatter . class ) Constrainable executable );
505
+ @ FormatWith (ClassObjectFormatter .class ) Class <? extends Annotation > constraint , Constrainable executable );
507
506
508
507
@ Message (id = 143 ,
509
508
value = "Cross parameter constraint %1$s is illegally placed on class level." )
@@ -512,7 +511,7 @@ ConstraintDeclarationException getCrossParameterConstraintOnMethodWithoutParamet
512
511
@ Message (id = 144 ,
513
512
value = "Cross parameter constraint %1$s is illegally placed on field '%2$s'." )
514
513
ConstraintDeclarationException getCrossParameterConstraintOnFieldException (@ FormatWith (ClassObjectFormatter .class ) Class <? extends Annotation > constraint ,
515
- @ FormatWith ( ConstrainableFormatter . class ) Constrainable field );
514
+ Constrainable field );
516
515
517
516
@ Message (id = 146 ,
518
517
value = "No parameter nodes may be added since path %s doesn't refer to a cross-parameter constraint." )
@@ -538,11 +537,11 @@ UnexpectedTypeException getMultipleValidatorsForSameTypeException(@FormatWith(Cl
538
537
539
538
@ Message (id = 151 ,
540
539
value = "A method overriding another method must not redefine the parameter constraint configuration, but method %2$s redefines the configuration of %1$s." )
541
- ConstraintDeclarationException getParameterConfigurationAlteredInSubTypeException (@ FormatWith ( ConstrainableFormatter . class ) Callable superMethod , @ FormatWith ( ConstrainableFormatter . class ) Callable subMethod );
540
+ ConstraintDeclarationException getParameterConfigurationAlteredInSubTypeException (Callable superMethod , Callable subMethod );
542
541
543
542
@ Message (id = 152 ,
544
543
value = "Two methods defined in parallel types must not declare parameter constraints, if they are overridden by the same method, but methods %s and %s both define parameter constraints." )
545
- ConstraintDeclarationException getParameterConstraintsDefinedInMethodsFromParallelTypesException (@ FormatWith ( ConstrainableFormatter . class ) Callable method1 , @ FormatWith ( ConstrainableFormatter . class ) Callable method2 );
544
+ ConstraintDeclarationException getParameterConstraintsDefinedInMethodsFromParallelTypesException (Callable method1 , Callable method2 );
546
545
547
546
@ Message (id = 153 ,
548
547
value = "The constraint %1$s used ConstraintTarget#%2$s but is not specified on a method or constructor." )
@@ -584,7 +583,7 @@ ConstraintDefinitionException getValidatorForCrossParameterConstraintMustEitherV
584
583
585
584
@ Message (id = 161 ,
586
585
value = "Two methods defined in parallel types must not define group conversions for a cascaded method return value, if they are overridden by the same method, but methods %s and %s both define parameter constraints." )
587
- ConstraintDeclarationException getMethodsFromParallelTypesMustNotDefineGroupConversionsForCascadedReturnValueException (@ FormatWith ( ConstrainableFormatter . class ) Callable method1 , @ FormatWith ( ConstrainableFormatter . class ) Callable method2 );
586
+ ConstraintDeclarationException getMethodsFromParallelTypesMustNotDefineGroupConversionsForCascadedReturnValueException (Callable method1 , Callable method2 );
588
587
589
588
@ Message (id = 162 ,
590
589
value = "The validated type %1$s does not specify the constructor/method: %2$s" )
@@ -632,19 +631,19 @@ ConstraintDefinitionException getValidatorForCrossParameterConstraintMustEitherV
632
631
633
632
@ Message (id = 174 ,
634
633
value = "Parameter %3$s of method or constructor %2$s of type %1$s is configured more than once via the programmatic constraint declaration API." )
635
- ValidationException getParameterHasAlreadyBeConfiguredViaProgrammaticApiException (@ FormatWith (ClassObjectFormatter .class ) Class <?> beanClass , @ FormatWith ( ConstrainableFormatter . class ) Callable callable , int parameterIndex );
634
+ ValidationException getParameterHasAlreadyBeConfiguredViaProgrammaticApiException (@ FormatWith (ClassObjectFormatter .class ) Class <?> beanClass , Callable callable , int parameterIndex );
636
635
637
636
@ Message (id = 175 ,
638
637
value = "The return value of method or constructor %2$s of type %1$s is configured more than once via the programmatic constraint declaration API." )
639
- ValidationException getReturnValueHasAlreadyBeConfiguredViaProgrammaticApiException (@ FormatWith (ClassObjectFormatter .class ) Class <?> beanClass , @ FormatWith ( ConstrainableFormatter . class ) Callable callable );
638
+ ValidationException getReturnValueHasAlreadyBeConfiguredViaProgrammaticApiException (@ FormatWith (ClassObjectFormatter .class ) Class <?> beanClass , Callable callable );
640
639
641
640
@ Message (id = 176 ,
642
641
value = "Constructor %2$s of type %1$s is configured more than once via the programmatic constraint declaration API." )
643
642
ValidationException getConstructorHasAlreadyBeConfiguredViaProgrammaticApiException (@ FormatWith (ClassObjectFormatter .class ) Class <?> beanClass , String constructor );
644
643
645
644
@ Message (id = 177 ,
646
645
value = "Cross-parameter constraints for the method or constructor %2$s of type %1$s are declared more than once via the programmatic constraint declaration API." )
647
- ValidationException getCrossParameterElementHasAlreadyBeConfiguredViaProgrammaticApiException (@ FormatWith (ClassObjectFormatter .class ) Class <?> beanClass , @ FormatWith ( ConstrainableFormatter . class ) Callable callable );
646
+ ValidationException getCrossParameterElementHasAlreadyBeConfiguredViaProgrammaticApiException (@ FormatWith (ClassObjectFormatter .class ) Class <?> beanClass , Callable callable );
648
647
649
648
@ Message (id = 178 , value = "Multiplier cannot be negative: %d." )
650
649
IllegalArgumentException getMultiplierCannotBeNegativeException (int multiplier );
@@ -717,7 +716,7 @@ ConstraintDeclarationException getInconsistentValueUnwrappingConfigurationBetwee
717
716
ValueExtractorDefinitionException getValueExtractorDeclaresExtractedValueMultipleTimesException (@ FormatWith (ClassObjectFormatter .class ) Class <?> extractorType );
718
717
719
718
@ Message (id = 205 , value = "Invalid unwrapping configuration for constraint %2$s on %1$s. You can only define one of 'Unwrapping.Skip' or 'Unwrapping.Unwrap'." )
720
- ConstraintDeclarationException getInvalidUnwrappingConfigurationForConstraintException (@ FormatWith ( ConstrainableFormatter . class ) Constrainable constrainable , @ FormatWith (ClassObjectFormatter .class ) Class <? extends Annotation > constraint );
719
+ ConstraintDeclarationException getInvalidUnwrappingConfigurationForConstraintException (Constrainable constrainable , @ FormatWith (ClassObjectFormatter .class ) Class <? extends Annotation > constraint );
721
720
722
721
@ Message (id = 206 , value = "Unable to instantiate value extractor class %s." )
723
722
ValidationException getUnableToInstantiateValueExtractorClassException (String valueExtractorClassName , @ Cause ValidationException e );
0 commit comments