mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
17 lines
338 B
Plaintext
17 lines
338 B
Plaintext
/**
|
|
* @id java/examples/field-read
|
|
* @name Read of field
|
|
* @description Finds reads of aField (defined on com.example.Class)
|
|
* @tags field
|
|
* read
|
|
*/
|
|
|
|
import java
|
|
|
|
from Field f, FieldRead read
|
|
where
|
|
f.hasName("aField") and
|
|
f.getDeclaringType().hasQualifiedName("com.example", "Class") and
|
|
f = read.getField()
|
|
select read
|