Skip to content

Commit bd9c7df

Browse files
committed
Improve QL quality
1 parent 21c13fb commit bd9c7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/Violations of Best Practice/Naming Conventions/FieldMasksSuperField.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ where
3131
not exists(VarAccess va | va.getVariable() = masked | va.getQualifier() instanceof SuperAccess) and
3232
type.fromSource() and
3333
// Exclude live literal variables, which is generated code.
34-
not exists(LiveLiteral l | masking.getInitializer() = l)
34+
not masking.getInitializer() instanceof LiveLiteral
3535
select masking, "This field shadows another field called $@ in a superclass.", masked,
3636
masked.getName()

0 commit comments

Comments
 (0)