File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/main/java/tools/jackson/databind/introspect Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ public class AnnotatedClassResolver
56
56
57
57
// Also... JDK types do not have annotations that are of interest to us
58
58
// At least JDK container types
59
- _collectAnnotations = ( _intr != null ) &&
60
- ( !ClassUtil .isJDKClass (_class ) || ! _type . isContainerType () );
59
+ // 25-Jan-2025, tatu: [databind#4907] not just Container types, all JDK types
60
+ _collectAnnotations = ( _intr != null ) && !ClassUtil .isJDKClass (_class );
61
61
}
62
62
63
63
AnnotatedClassResolver (MapperConfig <?> config , Class <?> cls , MixInResolver r ) {
@@ -70,7 +70,7 @@ public class AnnotatedClassResolver
70
70
? config .getAnnotationIntrospector () : null ;
71
71
_primaryMixin = (r == null ) ? null : r .findMixInClassFor (_class );
72
72
73
- _collectAnnotations = (_intr != null );
73
+ _collectAnnotations = (_intr != null ) && ! ClassUtil . isJDKClass ( _class ) ;
74
74
}
75
75
76
76
/*
@@ -151,7 +151,6 @@ AnnotatedClass resolveFully() {
151
151
resolveClassAnnotations (superTypes ),
152
152
_bindings , _mixInResolver ,
153
153
_collectAnnotations );
154
-
155
154
}
156
155
157
156
AnnotatedClass resolveWithoutSuperTypes () {
You can’t perform that action at this time.
0 commit comments