Skip to content

Commit 06fdaac

Browse files
committed
just look at the field name in the "detect uses of the field in an inbetween class"-check
1 parent fa651d2 commit 06fdaac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/ql/src/queries/performance/UnusedField.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ where
2727
c.getASuperType*() = clz and
2828
implClz.getASuperType*() = c and
2929
p = c.getDeclaration().getCharPred() and
30-
exists(FieldAccess access | access.getDeclaration() = field |
30+
exists(FieldAccess access | access.getName() = field.getName() |
3131
access.getEnclosingPredicate() = p
3232
)
3333
) and

0 commit comments

Comments
 (0)