mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Improve QL quality
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user