Files
codeql/java/ql/test/library-tests/localclasses/Test.java
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

12 lines
156 B
Java

public class Test {
public static void method() {
class GenericLocal<T> { }
GenericLocal<Integer> instantiated = new GenericLocal<>();
}
}