File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
java/ql/lib/semmle/code/java/frameworks/spring Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import java
7
-
8
7
private import semmle.code.java.dataflow.ExternalFlow
9
8
private import semmle.code.java.dataflow.DataFlow
10
9
private import semmle.code.java.frameworks.spring.SpringController
@@ -270,8 +269,7 @@ private DataFlow::Node getABodyBuilderWithExplicitContentType(Expr contentType)
270
269
result .asExpr ( ) =
271
270
any ( MethodAccess ma |
272
271
ma .getCallee ( )
273
- .hasQualifiedName ( "org.springframework.http" , "ResponseEntity<>$BodyBuilder" ,
274
- "contentType" ) and
272
+ .hasQualifiedName ( "org.springframework.http" , "ResponseEntity$BodyBuilder" , "contentType" ) and
275
273
contentType = ma .getArgument ( 0 )
276
274
)
277
275
or
@@ -280,7 +278,7 @@ private DataFlow::Node getABodyBuilderWithExplicitContentType(Expr contentType)
280
278
ma .getQualifier ( ) = getABodyBuilderWithExplicitContentType ( contentType ) .asExpr ( ) and
281
279
ma .getType ( )
282
280
.( RefType )
283
- .hasQualifiedName ( "org.springframework.http" , "ResponseEntity<> $BodyBuilder" )
281
+ .hasQualifiedName ( "org.springframework.http" , "ResponseEntity$BodyBuilder" )
284
282
)
285
283
or
286
284
DataFlow:: localFlow ( getABodyBuilderWithExplicitContentType ( contentType ) , result )
You can’t perform that action at this time.
0 commit comments