Yoann Rodière I think this code is worth a change as it's quite unclear. Usually, the pattern is the following:
PerClassWork[] worksFromEvents = byClass.values().toArray( new PerClassWork[byClass.size()] );
Having it in 2 lines is quite misleading and it would avoid creating another issue for the same problem in 2 months . |