Use concise API

This commit is contained in:
luchua-bc
2021-03-03 14:07:43 +00:00
parent 1b1c3f953b
commit 502cf38fcc

View File

@@ -48,9 +48,8 @@ class SensitiveCookieNameExpr extends Expr {
ClassInstanceExpr cie // new Cookie("jwt_token", token)
|
(
cie.getConstructor().getDeclaringType().hasQualifiedName("javax.servlet.http", "Cookie") or
cie.getConstructor()
.getDeclaringType()
cie.getConstructedType().hasQualifiedName("javax.servlet.http", "Cookie") or
cie.getConstructedType()
.getASupertype*()
.hasQualifiedName(["javax.ws.rs.core", "jakarta.ws.rs.core"], "Cookie")
) and