mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
This is imperfect since arguments to those annotations will be missing, but at least the common case of a plain `@NotNull` or `@Nullable` will be right, and the `@NotNull`s introduced by the Kotlin compiler will be present as expected.
12 lines
243 B
Plaintext
12 lines
243 B
Plaintext
import java
|
|
|
|
from Method m, string origin, Annotation a
|
|
where
|
|
m.fromSource() and
|
|
(
|
|
origin = "return value" and a = m.getAnAnnotation()
|
|
or
|
|
origin = "parameter" and a = m.getAParameter().getAnAnnotation()
|
|
)
|
|
select m, origin, a
|