Skip to content

Commit d291e0c

Browse files
committed
Fix typeParametersInScope consistency query
The selection of type variables mentioned in a particular class previously didn't work as intended, so the consistency query would always pass.
1 parent fff70da commit d291e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/consistency-queries/typeParametersInScope.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ TypeVariable getATypeVariableInScope(RefType type) {
3636

3737
from ClassOrInterface typeUser, TypeVariable outOfScope
3838
where
39-
outOfScope = getAMentionedType(typeUser) and not outOfScope = getATypeVariableInScope(typeUser)
39+
outOfScope = getATypeUsedInClass(typeUser) and not outOfScope = getATypeVariableInScope(typeUser)
4040
select "Type " + typeUser + " uses out-of-scope type variable " + outOfScope

0 commit comments

Comments
 (0)