Skip to content

Commit be629b2

Browse files
author
Stephan Brandauer
committed
Java: Automodel package private test case
1 parent f5c4155 commit be629b2

File tree

1 file changed

+5
-0
lines changed
  • java/ql/test/query-tests/Telemetry/AutomodelFrameworkModeExtraction/com/github/codeql/test

1 file changed

+5
-0
lines changed

java/ql/test/query-tests/Telemetry/AutomodelFrameworkModeExtraction/com/github/codeql/test/PublicClass.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ public static void staticStuff(String arg) { // arg is a candidate
1313
protected void nonPublicStuff(String arg) {
1414
System.out.println(arg);
1515
}
16+
17+
// arg is not a candidate because the method is not public:
18+
void packagePrivateStuff(String arg) {
19+
System.out.println(arg);
20+
}
1621
}

0 commit comments

Comments
 (0)