Skip to content

Commit f98460c

Browse files
committed
Java: Use SpringHttpEntity class.
1 parent ae21de9 commit f98460c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

java/ql/src/semmle/code/java/frameworks/spring/SpringController.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,7 @@ class SpringRequestMappingParameter extends Parameter {
207207
this.getAnAnnotation() instanceof SpringServletInputAnnotation or
208208
// HttpEntity is like @RequestBody, but with a wrapper including the headers
209209
// TODO model unwrapping aspects
210-
getType()
211-
.(RefType)
212-
.getAnAncestor()
213-
.hasQualifiedName("org.springframework.http", "HttpEntity<T>") or
210+
getType().(RefType).getASourceSupertype*() instanceof SpringHttpEntity or
214211
this
215212
.getAnAnnotation()
216213
.getType()

0 commit comments

Comments
 (0)