-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
type: documentationA documentation updateA documentation update
Milestone
Description
Lines 638 to 658 in b975572
| */ | |
| public boolean useForType(JavaType javaType) { | |
| if (javaType.isJavaLangObject()) { | |
| return true; | |
| } | |
| javaType = resolveArrayOrWrapper(javaType); | |
| if (javaType.isEnumType() || ClassUtils.isPrimitiveOrWrapper(javaType.getRawClass())) { | |
| return false; | |
| } | |
| if (javaType.isFinal() && !KotlinDetector.isKotlinType(javaType.getRawClass()) | |
| && javaType.getRawClass().getPackageName().startsWith("java")) { | |
| return false; | |
| } | |
| // [databind#88] Should not apply to JSON tree models: | |
| return !TreeNode.class.isAssignableFrom(javaType.getRawClass()); | |
| } |
This method is overridinguseForType(JavaType t) of com.fasterxml.jackson.databindObjectMapper.DefaultTypeResolverBuilder
Metadata
Metadata
Assignees
Labels
type: documentationA documentation updateA documentation update