@@ -510,7 +510,6 @@ private void _addExplicitPropertyCreator(DeserializationContext ctxt,
510
510
CreatorCandidate candidate )
511
511
throws JsonMappingException
512
512
{
513
- //System.err.println("_addExplicitPropertyCreator(): "+candidate);
514
513
final int paramCount = candidate .paramCount ();
515
514
SettableBeanProperty [] properties = new SettableBeanProperty [paramCount ];
516
515
@@ -525,9 +524,12 @@ private void _addExplicitPropertyCreator(DeserializationContext ctxt,
525
524
if (unwrapper != null ) {
526
525
_reportUnwrappedCreatorProperty (ctxt , beanDesc , param );
527
526
}
528
- name = candidate .findImplicitParamName (i );
529
- _validateNamedPropertyParameter (ctxt , beanDesc , candidate , i ,
530
- name , injectId );
527
+ // Must be injectable or have name; without either won't work
528
+ if ((name == null ) && (injectId == null )) {
529
+ ctxt .reportBadTypeDefinition (beanDesc ,
530
+ "Argument #%d of Creator %s has no property name (and is not Injectable): can not use as property-based Creator" ,
531
+ i , candidate );
532
+ }
531
533
}
532
534
properties [i ] = constructCreatorProperty (ctxt , beanDesc , name , i , param , injectId );
533
535
}
@@ -587,24 +589,6 @@ private boolean _handleSingleArgumentCreator(CreatorCollector creators,
587
589
return false ;
588
590
}
589
591
590
- // Helper method to check that parameter of Property-based creator either
591
- // has name or is marked as Injectable
592
- //
593
- // @since 2.12.1
594
- private void _validateNamedPropertyParameter (DeserializationContext ctxt ,
595
- BeanDescription beanDesc ,
596
- CreatorCandidate candidate , int paramIndex ,
597
- PropertyName name , JacksonInject .Value injectId )
598
- throws JsonMappingException
599
- {
600
- // Must be injectable or have name; without either won't work
601
- if ((name == null ) && (injectId == null )) {
602
- ctxt .reportBadTypeDefinition (beanDesc ,
603
- "Argument #%d of Creator %s has no property name (and is not Injectable): can not use as property-based Creator" ,
604
- paramIndex , candidate );
605
- }
606
- }
607
-
608
592
// 01-Dec-2016, tatu: As per [databind#265] we cannot yet support passing
609
593
// of unwrapped values through creator properties, so fail fast
610
594
private void _reportUnwrappedCreatorProperty (DeserializationContext ctxt ,
0 commit comments