Files
codeql/java/ql/test/library-tests/localclasses/test.ql
Chris Smowton e352a4b994 Note that parameterizations of local classes are themselves local
Previously `LocalClass` itself would match `.isLocal()` whereas `LocalClass<Param>` would not. Rather than require each individual user to check for `.getSourceDeclaration().isLocal()`, let's note that the specializations themselves are local.
2022-01-10 18:19:31 +00:00

8 lines
114 B
Plaintext

import java
from ClassOrInterface ci
where
ci.getSourceDeclaration().fromSource() and
ci.isLocal()
select ci