We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06fdaac commit dfe2140Copy full SHA for dfe2140
ql/ql/src/queries/performance/UnusedField.ql
@@ -16,8 +16,7 @@ where
16
implClz.getASuperType*() = clz and
17
// The field is not accessed in the charpred (of any of the classes)
18
not exists(FieldAccess access |
19
- access.getEnclosingPredicate() =
20
- [clz.getDeclaration().getCharPred(), implClz.getDeclaration().getCharPred()]
+ access.getEnclosingPredicate() = [clz, implClz].getDeclaration().getCharPred()
21
) and
22
// The implementation class is not abstract, and the field is not an override
23
not implClz.getDeclaration().isAbstract() and
0 commit comments