Improve QL quality

This commit is contained in:
Tamas Vajk
2022-10-19 09:00:39 +02:00
parent 21c13fb9a3
commit bd9c7df25b

View File

@@ -31,6 +31,6 @@ where
not exists(VarAccess va | va.getVariable() = masked | va.getQualifier() instanceof SuperAccess) and
type.fromSource() and
// Exclude live literal variables, which is generated code.
not exists(LiveLiteral l | masking.getInitializer() = l)
not masking.getInitializer() instanceof LiveLiteral
select masking, "This field shadows another field called $@ in a superclass.", masked,
masked.getName()