Skip to content

Commit 655236c

Browse files
committed
Remove no-longer-needed generic specifiers
1 parent b47939c commit 655236c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

java/ql/lib/semmle/code/java/frameworks/spring/SpringHttp.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55

66
import java
7-
87
private import semmle.code.java.dataflow.ExternalFlow
98
private import semmle.code.java.dataflow.DataFlow
109
private import semmle.code.java.frameworks.spring.SpringController
@@ -270,8 +269,7 @@ private DataFlow::Node getABodyBuilderWithExplicitContentType(Expr contentType)
270269
result.asExpr() =
271270
any(MethodAccess ma |
272271
ma.getCallee()
273-
.hasQualifiedName("org.springframework.http", "ResponseEntity<>$BodyBuilder",
274-
"contentType") and
272+
.hasQualifiedName("org.springframework.http", "ResponseEntity$BodyBuilder", "contentType") and
275273
contentType = ma.getArgument(0)
276274
)
277275
or
@@ -280,7 +278,7 @@ private DataFlow::Node getABodyBuilderWithExplicitContentType(Expr contentType)
280278
ma.getQualifier() = getABodyBuilderWithExplicitContentType(contentType).asExpr() and
281279
ma.getType()
282280
.(RefType)
283-
.hasQualifiedName("org.springframework.http", "ResponseEntity<>$BodyBuilder")
281+
.hasQualifiedName("org.springframework.http", "ResponseEntity$BodyBuilder")
284282
)
285283
or
286284
DataFlow::localFlow(getABodyBuilderWithExplicitContentType(contentType), result)

0 commit comments

Comments
 (0)