@@ -55,20 +55,23 @@ static <T extends TargetedAccessor> List<T> getAccessorsToTry(
55
55
/**
56
56
* Determine the set of accessors that should be used to try to access an
57
57
* element on the specified target type.
58
- * <p>The accessors are considered to be in an ordered list; however, in the
59
- * returned list any accessors that are exact matches for the input target
60
- * type (as opposed to 'generic' accessors that could work for any type) are
61
- * placed at the start of the list. In addition, if there are specific
62
- * accessors that exactly name the class in question and accessors that name
63
- * a specific class which is a supertype of the class in question, the latter
64
- * are put at the end of the specific accessors set and will be tried after
65
- * exactly matching accessors but before generic accessors.
58
+ * <p>The supplied accessors are considered to be in an ordered list; however,
59
+ * in the returned list any accessors that are exact matches for the supplied
60
+ * target type are placed at the start of the list (as opposed to 'generic'
61
+ * accessors that could work for any target type). In addition, if there are
62
+ * accessors that claim support for the exact target type as well as accessors
63
+ * that claim support for a supertype of the target type, the latter are placed
64
+ * at the end of the specific accessors set and will be tried after exactly
65
+ * matching accessors but before generic accessors.
66
+ * <p>Only matching accessors and generic accessors will be included in the
67
+ * returned list.
66
68
* @param targetType the type upon which element access is being attempted
67
69
* @param accessors the list of element accessors to process
68
70
* @return a list of accessors that should be tried in order to access the
69
71
* element on the specified target type, or an empty list if no suitable
70
72
* accessor could be found
71
73
* @since 6.2
74
+ * @see TargetedAccessor#getSpecificTargetClasses()
72
75
*/
73
76
static <T extends TargetedAccessor > List <T > getAccessorsToTry (
74
77
@ Nullable Class <?> targetType , List <T > accessors ) {
0 commit comments