Java: Deprecate Field.getSourceDeclaration() and Field.isSourceDeclaration()

Also follows the removal of the sourceid column of fields.
This commit is contained in:
Ian Lynagh
2024-09-18 11:27:20 +01:00
parent 0be52f9660
commit bda779a58d
11 changed files with 24 additions and 41 deletions

View File

@@ -52,7 +52,7 @@ predicate depends(RefType t, RefType dep) {
or
// the declaring type of a field accessed in `t`,
exists(Field f | f.getAnAccess().getEnclosingCallable().getDeclaringType() = t |
usesType(f.getSourceDeclaration().getDeclaringType(), dep)
usesType(f.getDeclaringType(), dep)
)
or
// the type of a local variable declared in `t`,