mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 07:32:21 +07:00
15 lines
751 B
Java
15 lines
751 B
Java
import org.jetbrains.annotations.Nullable;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
class ArrayStoreProblems {
|
|
void test(String[] args, Integer[] args2) {
|
|
Object[] arr = args;
|
|
arr[0] <warning descr="Storing element of type 'java.lang.Integer' to array of 'java.lang.String' elements may produce 'ArrayStoreException'">=</warning> 123;
|
|
arr = args2;
|
|
arr[1] = 124;
|
|
arr[2] <warning descr="Storing element of type 'java.lang.String' to array of 'java.lang.Integer' elements may produce 'ArrayStoreException'">=</warning> "foo";
|
|
arr = args;
|
|
arr[3] = "bar";
|
|
arr[4] <warning descr="Storing element of type 'java.lang.Integer' to array of 'java.lang.String' elements may produce 'ArrayStoreException'">=</warning> 125;
|
|
}
|
|
} |