IWorkingSet[] workingSets;
synchronized (fWorkingSets) {
workingSets = (IWorkingSet[]) fWorkingSets
.toArray(new IWorkingSet[fWorkingSets.size()]);
}
<BUG>for (int w = 0; w < workingSets.length; w++) {
WorkingSetDelta workingSetDelta = new WorkingSetDelta(

workingSets[w]);</BUG>
processResourceDelta(workingSetDelta, delta);

IWorkingSet[] workingSets;
synchronized (fWorkingSets) {
workingSets = (IWorkingSet[]) fWorkingSets
.toArray(new IWorkingSet[fWorkingSets.size()]);
}
for (IWorkingSet workingSet : workingSets) {
WorkingSetDelta workingSetDelta = new WorkingSetDelta(workingSet);
processResourceDelta(workingSetDelta, delta);
