Review request for 7038565, for a findbugs warning for BatchUpdateException
Rémi Forax
forax at univ-mlv.fr
Sun Apr 24 22:54:13 UTC 2011
On 04/23/2011 12:11 PM, David Holmes wrote:
> Rémi Forax said the following on 04/23/11 04:22:
>> On 04/22/2011 06:51 PM, Lance Andersen - Oracle wrote:
>>>>
>>>> You should use clone() instead of Arrays.copyOf.
>>>
>>> Can you explain why you have a preference for clone() in this case?
>>
>> It does the job :)
>> Arrays.copyOf() allows to resize the array.
>
> So? That's not a reason to not use Arrays.copyOf. Look at copyOf as
> the new improved version of clone.
Ok, it seems I'm too old to want to write something that will be seen in
the future
as a long troll on the merit of clone vs Arrays.copyOf.
>
> David
Rémi
More information about the core-libs-dev
mailing list