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