ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Rev 568096 breaks ant-contrib
Date Thu, 06 Sep 2007 18:45:18 GMT
On Wed, 05 Sep 2007, Stefan Bodewig <bodewig@apache.org> wrote:

> Instead of what we have in Equals it should probably be
> 
> public void setArg1(Object a) {
>     if (a instanceof String) {
>         setArg1((String) a);
>     } else {
>         somePrivateArg1Setter(a);
>     }
> }
> 
> public void setArg1(String a) {
>     somePrivateArg1Setter(a);
> }

Is anything wrong with that approach?

Stefan

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


Mime
View raw message