Java: Use SpringHttpEntity class.

This commit is contained in:
Anders Schack-Mulligen
2020-07-06 16:54:20 +02:00
parent ae21de90b6
commit f98460cfd0

View File

@@ -207,10 +207,7 @@ class SpringRequestMappingParameter extends Parameter {
this.getAnAnnotation() instanceof SpringServletInputAnnotation or
// HttpEntity is like @RequestBody, but with a wrapper including the headers
// TODO model unwrapping aspects
getType()
.(RefType)
.getAnAncestor()
.hasQualifiedName("org.springframework.http", "HttpEntity<T>") or
getType().(RefType).getASourceSupertype*() instanceof SpringHttpEntity or
this
.getAnAnnotation()
.getType()