Skip to content

Commit

Permalink
HV-1438 Use the right method to throw the exception
Browse files Browse the repository at this point in the history
This issue was previously hidden but it was an oversight.
  • Loading branch information
gsmet committed Aug 3, 2017
1 parent cffcdec commit e4d1c31
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -86,7 +86,7 @@ private static <A extends Annotation> Type addValueExtractorDescriptorForWrapped
if ( ValidateUnwrappedValue.UNWRAP.equals( constraintDescriptor.getValueUnwrapping() ) ) {
switch ( valueExtractorDescriptorCandidates.size() ) {
case 0:
throw LOG.getNoValueExtractorFoundForTypeException( declaredType, null );
throw LOG.getNoValueExtractorFoundForUnwrapException( declaredType );
case 1:
selectedValueExtractorDescriptor = valueExtractorDescriptorCandidates.iterator().next();
break;
Expand Down

0 comments on commit e4d1c31

Please sign in to comment.