mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
Java: Deprecate Field.getSourceDeclaration() and Field.isSourceDeclaration()
Also follows the removal of the sourceid column of fields.
This commit is contained in:
@@ -40,7 +40,7 @@ class ImmutableField extends Field {
|
||||
this.getType() instanceof ImmutableType and
|
||||
// The field is only assigned to in a constructor or static initializer of the type it is declared in.
|
||||
forall(FieldAccess fw, AnyAssignment ae |
|
||||
fw.getField().getSourceDeclaration() = this and
|
||||
fw.getField() = this and
|
||||
fw = ae.getDest()
|
||||
|
|
||||
ae.getEnclosingCallable().getDeclaringType() = this.getDeclaringType() and
|
||||
|
||||
Reference in New Issue
Block a user