I am looking through the code someone wrote a while back and wondering whether I am missing something here
Assuming
List<Integer> runUids = new ArrayList<Integer>();
and later on as part of a loop
int runUID = runUidsAL.get(i).intValue();
Is there any reason why intValue() needs to be called here?. Don’t think it’s needed here. Do you?
You didn’t say so, but I assume that
runUIDis anint.It’s not necessary to call
intValue()explicitly on theIntegerobject returned byrunUidsAL.get(i); Java will do this automatically by auto-unboxing.