Files
codeql/java/ql/test/query-tests/lgtm-example-queries/Test.java
2022-10-25 16:26:11 +01:00

20 lines
339 B
Java

public class Test {
int array() {
int[] arr = new int[]{1,2,3};
int i = 0;
arr[i++] = 4; // arrayaccess.ql
return arr[i];
}
void test() { // voidreturntype.ql
}
Object test2() {
return null; // returnstatement.ql
}
// Diagnostic Matches: Incomplete inheritance relation for type java.lang.Object and supertype none
}