Skip to content

Commit

Permalink
Minor work for #4907: reduce _annotation_ introspection of JDK types …
Browse files Browse the repository at this point in the history
…further (#4927)
  • Loading branch information
cowtowncoder authored Jan 26, 2025
1 parent 0e9db3d commit 3f6fbb4
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public class AnnotatedClassResolver

// Also... JDK types do not have annotations that are of interest to us
// At least JDK container types
_collectAnnotations = (_intr != null) &&
(!ClassUtil.isJDKClass(_class) || !_type.isContainerType());
// 25-Jan-2025, tatu: [databind#4907] not just Container types, all JDK types
_collectAnnotations = (_intr != null) && !ClassUtil.isJDKClass(_class);
}

AnnotatedClassResolver(MapperConfig<?> config, Class<?> cls, MixInResolver r) {
Expand All @@ -77,7 +77,7 @@ public class AnnotatedClassResolver
_primaryMixin = (r == null) ? null : r.findMixInClassFor(_class);
}

_collectAnnotations = (_intr != null);
_collectAnnotations = (_intr != null) && !ClassUtil.isJDKClass(_class);
}

public static AnnotatedClass resolve(MapperConfig<?> config, JavaType forType,
Expand Down Expand Up @@ -145,7 +145,6 @@ AnnotatedClass resolveFully() {
resolveClassAnnotations(superTypes),
_bindings, _intr, _mixInResolver, _config.getTypeFactory(),
_collectAnnotations);

}

AnnotatedClass resolveWithoutSuperTypes() {
Expand Down

0 comments on commit 3f6fbb4

Please sign in to comment.