What does (int[]) (int[])
do ?
private Object[] slots = new Object[8192];
int[] block = (int[]) (int[]) this.slots[0];
In this case, the second cast does nothing. It is the same as typing
private Object[] slots = new Object[8192];
int[] block = (int[]) this.slots[0];
block = (int[]) block;
EDIT:
To clarify, the "second" cast that I am referring to is the one on the left.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.