mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
24 lines
492 B
Java
24 lines
492 B
Java
|
|
public class ExternalDeadRoot {
|
|
|
|
/**
|
|
* This class should be marked as only being used by the "outerDeadRoot()". The
|
|
* "innerDeadRoot()" should not be reported as a dead root, as it is internal to the class.
|
|
*/
|
|
public static class DeadClass {
|
|
public static void innerDeadRoot() {
|
|
}
|
|
|
|
public static void innerDeadMethod() {
|
|
}
|
|
}
|
|
|
|
public static void outerDeadRoot() {
|
|
DeadClass.innerDeadMethod();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
// Make outer class live.
|
|
}
|
|
}
|