Skip to content

Commit 5a56bb9

Browse files
committed
deprecated-call query: notice calls to methods of specialised generic classes
1 parent b926bc9 commit 5a56bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/Advisory/Deprecated Code/AvoidDeprecatedCallableAccess.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ private predicate isDeprecatedCallable(Callable c) {
2020

2121
from Call ca, Callable c
2222
where
23-
ca.getCallee() = c and
23+
ca.getCallee().getSourceDeclaration() = c and
2424
isDeprecatedCallable(c) and
2525
// Exclude deprecated calls from within deprecated code.
2626
not isDeprecatedCallable(ca.getCaller())

0 commit comments

Comments
 (0)