33
33
public class UnknownTypeHandler extends BaseTypeHandler <Object > {
34
34
35
35
private static final ObjectTypeHandler OBJECT_TYPE_HANDLER = new ObjectTypeHandler ();
36
- private final Configuration configuration ;
36
+ // TODO Rename to 'configuration' after removing the 'configuration' property(deprecated property) on parent class
37
+ private final Configuration config ;
37
38
private final Supplier <TypeHandlerRegistry > typeHandlerRegistrySupplier ;
38
39
39
40
/**
@@ -43,7 +44,7 @@ public class UnknownTypeHandler extends BaseTypeHandler<Object> {
43
44
* @since 3.5.4
44
45
*/
45
46
public UnknownTypeHandler (Configuration configuration ) {
46
- this .configuration = configuration ;
47
+ this .config = configuration ;
47
48
this .typeHandlerRegistrySupplier = configuration ::getTypeHandlerRegistry ;
48
49
}
49
50
@@ -55,7 +56,7 @@ public UnknownTypeHandler(Configuration configuration) {
55
56
*/
56
57
@ Deprecated
57
58
public UnknownTypeHandler (TypeHandlerRegistry typeHandlerRegistry ) {
58
- this .configuration = new Configuration ();
59
+ this .config = new Configuration ();
59
60
this .typeHandlerRegistrySupplier = () -> typeHandlerRegistry ;
60
61
}
61
62
@@ -109,7 +110,7 @@ private TypeHandler<?> resolveTypeHandler(ResultSet rs, String column) {
109
110
columnIndexLookup = new HashMap <>();
110
111
ResultSetMetaData rsmd = rs .getMetaData ();
111
112
int count = rsmd .getColumnCount ();
112
- boolean useColumnLabel = configuration .isUseColumnLabel ();
113
+ boolean useColumnLabel = config .isUseColumnLabel ();
113
114
for (int i = 1 ; i <= count ; i ++) {
114
115
String name = useColumnLabel ? rsmd .getColumnLabel (i ) : rsmd .getColumnName (i );
115
116
columnIndexLookup .put (name ,i );
0 commit comments