Skip to content

Commit 1102005

Browse files
committed
Use 'type' parameter instead of '_primaryType' field
1 parent 11c7bd6 commit 1102005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fasterxml/jackson/databind/introspect/AnnotatedCreatorCollector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private List<AnnotatedMethod> _findPotentialFactories(JavaType type,
244244
Method candidate = candidates.get(i);
245245
// Apply generic type information based on the requested type
246246
TypeResolutionContext typeResCtxt = MethodGenericTypeResolver.narrowMethodTypeParameters(
247-
candidate, _primaryType, _config.getTypeFactory(), emptyTypeResCtxt);
247+
candidate, type, _config.getTypeFactory(), emptyTypeResCtxt);
248248
result.set(i,
249249
constructFactoryCreator(candidate,
250250
typeResCtxt, null));

0 commit comments

Comments
 (0)