mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Update python/ql/src/Classes/SubclassShadowing/SubclassShadowing.ql
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -64,7 +64,7 @@ where
|
||||
if isProperty(shadowed)
|
||||
then
|
||||
// it's not a setter, so it's a read-only property
|
||||
extra = " (read-only property may cause an error if written to in the superclass.)"
|
||||
extra = " (read-only property may cause an error if written to in the superclass)"
|
||||
else extra = ""
|
||||
)
|
||||
select shadowed, "This method is shadowed by $@ in superclass $@." + extra, write,
|
||||
|
||||
Reference in New Issue
Block a user