Centralize bounds check in package private methods
Ulf Zibis
Ulf.Zibis at gmx.de
Sun Mar 21 10:00:39 UTC 2010
That's great, gives me more time for other work.
Preconditions seems good candidate for java.util package.
Some namings appear little strange for me. Example:
String errorMessageTemplate, Object... errorMessageArgs
Why not just:
errorFormat, errorArgs
messageFormat, messageArgs
Term 'format' is known from printf.
Have you noticed the "creative" variations on messages in class AbstractStringBuilder?
-Ulf
Am 21.03.2010 09:16, schrieb Martin Buchholz:
> This is definitely on the right track.
> We should borrow as many of the ideas and
> method names from LinkedList and Preconditions.
> But compatibility will force us to maintain our own
> versions of these methods.
>
> Someday I'd like to see much of
> google-collections/guava in the jdk.
> Particularly Preconditions.
>
> Martin
>
> On Sat, Mar 20, 2010 at 17:18, Ulf Zibis<Ulf.Zibis at gmx.de> wrote:
>
>> What do you think about?
>> See attachment.
>>
>> -Ulf
>>
>>
>>
>
>
More information about the core-libs-dev
mailing list