Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ee0fa9

Browse files
committed
Add deprecation messages
1 parent b77b376 commit 3ee0fa9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class CryptoKeySink extends CredentialSinkNode {
3333
}
3434

3535
/**
36+
* DEPRECATED: Use the `PasswordSink` class instead.
3637
* Holds if callable `c` from a standard Java API expects a password parameter at index `i`.
3738
*/
3839
deprecated predicate javaApiCallablePasswordParam(Callable c, int i) {
@@ -159,6 +160,7 @@ deprecated private predicate javaApiCallablePasswordParam(string s) {
159160
}
160161

161162
/**
163+
* DEPRECATED: Use the `UsernameSink` class instead.
162164
* Holds if callable `c` from a standard Java API expects a username parameter at index `i`.
163165
*/
164166
deprecated predicate javaApiCallableUsernameParam(Callable c, int i) {
@@ -222,6 +224,7 @@ deprecated private predicate javaApiCallableUsernameParam(string s) {
222224
}
223225

224226
/**
227+
* DEPRECATED: Use the `CryptoKeySink` class instead.
225228
* Holds if callable `c` from a standard Java API expects a cryptographic key parameter at index `i`.
226229
*/
227230
deprecated predicate javaApiCallableCryptoKeyParam(Callable c, int i) {
@@ -450,6 +453,7 @@ deprecated private predicate javaApiCallableCryptoKeyParam(string s) {
450453
}
451454

452455
/**
456+
* DEPRECATED: Use the `CredentialsSinkNode` class instead.
453457
* Holds if callable `c` from a known API expects a credential parameter at index `i`.
454458
*/
455459
deprecated predicate otherApiCallableCredentialParam(Callable c, int i) {

0 commit comments

Comments
 (0)