Merge "Use toArray(T[]) instead of toArray()."