@@ -61,7 +61,7 @@ public enum Validity {
61
61
* are known to be safe). Check can be thought of as both optimization (for latter case)
62
62
* and eager-fail (for former case) to give better feedback.
63
63
*
64
- * @param ctxt Context for resolution: typically will be {@code DeserializationContext }
64
+ * @param config Configuration for resolution: typically will be {@code DeserializationConfig }
65
65
* @param baseType Nominal base type used for polymorphic handling: subtypes MUST be instances
66
66
* of this type and assignment compatibility is verified by Jackson core
67
67
*
@@ -71,8 +71,7 @@ public enum Validity {
71
71
* (caller will usually throw an exception); otherwise (return {@link Validity#INDETERMINATE})
72
72
* per sub-type validation calls are made for each new subclass encountered.
73
73
*/
74
- public abstract Validity validateBaseType (MapperConfig <?> ctxt , JavaType baseType )
75
- throws JsonMappingException ;
74
+ public abstract Validity validateBaseType (MapperConfig <?> config , JavaType baseType );
76
75
77
76
/**
78
77
* Method called after intended class name for subtype has been read (and in case of minimal
@@ -86,7 +85,7 @@ public abstract Validity validateBaseType(MapperConfig<?> ctxt, JavaType baseTyp
86
85
* Validator may also choose to indicate denial by throwing a {@link JsonMappingException}
87
86
* (such as {@link com.fasterxml.jackson.databind.exc.InvalidTypeIdException})
88
87
*
89
- * @param ctxt Context for resolution: typically will be {@code DeserializationContext }
88
+ * @param config Configuration for resolution: typically will be {@code DeserializationConfig }
90
89
* @param baseType Nominal base type used for polymorphic handling: subtypes MUST be instances
91
90
* of this type and assignment compatibility is verified by Jackson core
92
91
* @param subClassName Name of class that will be resolved to {@link java.lang.Class} if
@@ -95,7 +94,7 @@ public abstract Validity validateBaseType(MapperConfig<?> ctxt, JavaType baseTyp
95
94
* @return Determination of validity of given class name, as a subtype of given base type:
96
95
* should NOT return {@code null}
97
96
*/
98
- public abstract Validity validateSubClassName (MapperConfig <?> ctxt , JavaType baseType ,
97
+ public abstract Validity validateSubClassName (MapperConfig <?> config , JavaType baseType ,
99
98
String subClassName ) throws JsonMappingException ;
100
99
101
100
/**
@@ -107,14 +106,14 @@ public abstract Validity validateSubClassName(MapperConfig<?> ctxt, JavaType bas
107
106
* Validator may also choose to indicate denial by throwing a {@link JsonMappingException}
108
107
* (such as {@link com.fasterxml.jackson.databind.exc.InvalidTypeIdException})
109
108
*
110
- * @param ctxt Context for resolution: typically will be {@code DeserializationContext }
109
+ * @param config Configuration for resolution: typically will be {@code DeserializationConfig }
111
110
* @param baseType Nominal base type used for polymorphic handling: subtypes MUST be instances
112
111
* of this type and assignment compatibility has been verified by Jackson core
113
112
* @param subType Resolved subtype to validate
114
113
*
115
114
* @return Determination of validity of given class name, as a subtype of given base type:
116
115
* should NOT return {@code null}
117
116
*/
118
- public abstract Validity validateSubType (MapperConfig <?> ctxt , JavaType baseType ,
117
+ public abstract Validity validateSubType (MapperConfig <?> config , JavaType baseType ,
119
118
JavaType subType ) throws JsonMappingException ;
120
119
}
0 commit comments