Skip to content

Commit b9f3b3b

Browse files
committed
Apply code review suggestion
1 parent f0a0ac1 commit b9f3b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/security/SensitiveLoggingQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CredentialExpr extends Expr {
1212
CredentialExpr() {
1313
exists(Variable v | this = v.getAnAccess() |
1414
v.getName().regexpMatch(getCommonSensitiveInfoRegex()) and
15-
not (v.isFinal() and v.isStatic())
15+
not this instanceof CompileTimeConstantExpr
1616
)
1717
}
1818
}

0 commit comments

Comments
 (0)