SUMMARY This "for each" loop can be improved by using for(a : b) which is described better here: https://stackoverflow.com/questions/22836277/what-is-the-difference-between-for-each-in-and-for
Since this ticket misses source file/line number information, I am assuming you are referring to the same location as in bug 419455.