struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
Subject Re: Why the different parameter counts?
Date Wed, 14 Jan 2004 21:39:35 GMT
On Wed, 14 Jan 2004 06:49:48 -0800 (PST), David Graham wrote:
>
> --- Larry Meadors <Larry.Meadors@plumcreek.com> wrote:
>
>> I am looking at the MessageResources class, and the MessageTag
>> class, and wondering if there is a reason for them accepting
>> different numbers of optional parameters - the MessageTag allows
>> five, but getMessage() in MessageResources only allows four.
>>
>> Other than some confusion, it is not a big deal, but it seems odd
>> to me that they are different. Am I missing something? Is there a
>> reason for not adding the five parameter version to the
>> MessageResources method?
>>
>
> IMO, there should be 3 versions of the method: accepting no
> replacement args, accepting one replacement arg, accepting an array
> of replacement args.  The 4 or 5 arg methods seem arbitrary.

+1 

Changing it to an array come up before. We just never went through with the change. 

-Ted.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message