mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
20 lines
339 B
Java
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
|
|
}
|