Are you sure we can avoid autoboxing in this case ? It is already autoboxed inside map.