update java/unassigned-field to match csharp

This commit is contained in:
erik-krogh
2022-08-11 22:21:33 +02:00
parent 280b101caa
commit 8899c1be04

View File

@@ -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"