mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
update java/unassigned-field to match csharp
This commit is contained in:
@@ -86,5 +86,6 @@ where
|
||||
) and
|
||||
// Exclude special VM classes.
|
||||
not isVMObserver(f.getDeclaringType())
|
||||
select f, "Field " + f.getName() + " never assigned non-null value, yet it is read at $@.", fr,
|
||||
fr.getFile().getStem() + ".java:" + fr.getLocation().getStartLine()
|
||||
select f,
|
||||
"The field '" + f.getName() + "' is never explicitly assigned a value, yet it is read $@.", fr,
|
||||
"here"
|
||||
|
||||
Reference in New Issue
Block a user