commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: [lang] notifier bug?
Date Mon, 25 Nov 2002 17:35:34 GMT

Yep. Thought I'd fixed that :) Thanks.

On Mon, 25 Nov 2002 Andy_Freeman@bd.com wrote:

> Is the this.clss assignment correct?  Shouldn't it be this.clss = listener?
>
>
>     public Notifier(Class listener) {
>         if(listener == null) {
>             throw new IllegalArgumentException("Illegal to have a null
> listener Class. ");
>         }
>
>         this.clss = clss;
>         // now we check methods, if only one of them, then
>         // let's set it
>         Method[] meths = clss.getDeclaredMethods();
>         if(meths.length == 0) {
>             this.listenerMethod = meths[0];
>         }
>     }
>
>
> Andy
>
>
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message