mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
26 lines
733 B
Java
26 lines
733 B
Java
public class LocalClassInTestMethod {
|
|
public void testNestedCase() {
|
|
class OuterLocalClass {
|
|
void func() {
|
|
class NestedLocalClass {
|
|
void nestedMethod() {
|
|
System.exit(4);
|
|
Runtime.getRuntime().halt(5);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
OuterLocalClass outer = new OuterLocalClass();
|
|
outer.func();
|
|
}
|
|
public void testNestedCase2() {
|
|
class OuterLocalClass {
|
|
class NestedLocalClass {
|
|
void nestedMethod() {
|
|
System.exit(4);
|
|
Runtime.getRuntime().halt(5);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |