[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Patch: minor Collection.toArray usage improvement
From: |
Tom Tromey |
Subject: |
Re: [cp-patches] Patch: minor Collection.toArray usage improvement |
Date: |
17 Sep 2005 20:42:57 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Anthony" == Anthony Green <address@hidden> writes:
Anthony> If the array passed to Collection.toArray(Object[]) isn't big enough,
Anthony> then it will use reflection to allocate an appropriate array of the
Anthony> right type. Classpath contains a number of instances where we're
Anthony> passing new zero-length arrays. We can eliminate the extra allocation
Anthony> and reflection use as follows...
Anthony> Ok?
Looks good, thanks.
Tom