diff --git a/src/main/java/org/springframework/hateoas/mediatype/PropertyUtils.java b/src/main/java/org/springframework/hateoas/mediatype/PropertyUtils.java index 063a5a00..17799eeb 100644 --- a/src/main/java/org/springframework/hateoas/mediatype/PropertyUtils.java +++ b/src/main/java/org/springframework/hateoas/mediatype/PropertyUtils.java @@ -135,7 +135,7 @@ public class PropertyUtils { return METADATA_CACHE.computeIfAbsent(type, it -> { - ResolvableType domainType = unwrapDomainType(type); + ResolvableType domainType = unwrapDomainType(it); Class resolved = domainType.resolve(Object.class); return Object.class.equals(resolved) //